I WANT TO CREATE AT LOGIN SECTION ONLY ONE USE CAN LOG AT ONE TIME. AT ONE SYSTEM. USES CAN NOT OPEN IT BY ANY OTHER SYSTEM .
PLEASE HELP ME..
tHANK S
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajeev KumarPosted May 21, 2013, 6:44 AM
Pankaj PandeyPosted May 17, 2013, 9:06 AM
you can add a extra field in login table which work like a flag.
when a user logged in, it convert to 1 and when logout goes to 0.
another way to store login detail in global application file, and check at time of ligin whether another session is exist or not, but only when your loged-in users are limited.
otherwise your application may slow .
first way is better for you., and you need to write a login that if a person directly close browser then how you change flag 1 to 0.
for that you can check a perticular time(eg. 20 minut), if there is any action is done by user then flag is 1 otherwise it goes to 1 and user automatically logout.
mark as answered if helpfull
thanks
Parveen SiwachPosted May 17, 2013, 8:16 AM
Session Management (OutProc - SQL Server)
Note:You need to create ASPState Database for maintaining loggedin user sessions.
Hope this will help you to solve your problem.