Let suppose, I am building an asp.net website which has login scenario in it. I want to provide a certain functionality to the website that if the user is already login on computer 1 and now try to login on computer 2, so he will be allowed to remain login on computer 2, while automatically logout him from computer 1. I also know that http is a stateless medium, so whenever user interact with computer 1 and try to interact with the page, it will get noticed at that time. in case of database on every page interaction? but not in are you using InProc, StateServer, SQL or custom session state? solution case 1 You need to store the additional data (the computer currently 'logged in') in the database, or application state. Then when you process the authentication request - check to see if the machine you stored matches the one requesting authentication - if it does not, you would force the user to log-in and store the new computer (ip address) in the database/application state. solution case 2
|
Saturday, March 5, 2011
the latest logon session is retained and the user is automatically signed out from the other session.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment