Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a scenario suppose ....

a user login from a credential in the application , if some1 login with same credential than i want that first user who is using same credential will log out ...


for this i am tracing all information as , UI, sessionid , login time are in logTable ,
But i face problem when suppose some close the browser without logout .

than acordind to logiTbl this user has a current session .

Pls any Help will be appreciated ;)
Posted
Comments
Lakhan Anjana 25-Jun-15 6:13am    
not possible.

1 solution

The best you can do is end the existing session but that won't tell the user they have ended until they try to access something and then, assuming you are using Forms Authentication, they will be redirected to the login page. And then if they login, the other person will get logged out and so they'll go back to the login page.

In other words, this design is not a good design when it comes to the web. So, although it can be done to a certain extent, it's not a good idea. I suggest re-thinking what it is you are trying to accomplish.
 
Share this answer
 
Comments
GDdixit 8-Jul-15 23:57pm    
yes , u r right bro

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900