Prevent multiple login using the same user name and password

前端 未结 12 2580
栀梦
栀梦 2020-11-29 22:03

I am developing an application that needs to prevent multiple login using the same user name and password.

If it happens on the same machine then obviously we need t

12条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-29 22:35

    Take one extra field in table with the column name say "IsLoggedIn" as bit field and set it to true until the user is logged in. As soon as user logs out set it to false. This need to be done for session expiry time also. As soon as the session expires this field should be set to false automatically using triggers or thru SP call

    good solution is still welcome

提交回复
热议问题