session state issues
-
im developing an online test application using ASP.NET , IIS 7.0 is the server and SQL 2005 is our database engine. the user for a test must login first. i used session id s and variables to store names and login logout. but im having a problem with authentication .if on one computer im logged in as raj , then from a different computer i can still login as raj. how can i maintain unique logging in of users.really stumped. please help.
-
im developing an online test application using ASP.NET , IIS 7.0 is the server and SQL 2005 is our database engine. the user for a test must login first. i used session id s and variables to store names and login logout. but im having a problem with authentication .if on one computer im logged in as raj , then from a different computer i can still login as raj. how can i maintain unique logging in of users.really stumped. please help.
u can maintan with database flag... but u should keep in mind..all the users will not click logout...they will close browser directly
modified on Wednesday, March 11, 2009 8:18 AM
-
u can maintan with database flag... but u should keep in mind..all the users will not click logout...they will close browser directly
modified on Wednesday, March 11, 2009 8:18 AM
The solution given by Rajesh is appropriate. You can further enhance is as follows to automagically maintain/reset the flags: 1)Define a database level job to scan the users table for the active flags and the time they were marked and then reset the same after a specific amount of time. 2) Or add code to Session_OnEnd to mark the flag 3) or use and asynchronous javascript call on the page_unload event at client side to reset the flag.
Regards, Cybernate
-
u can maintan with database flag... but u should keep in mind..all the users will not click logout...they will close browser directly
modified on Wednesday, March 11, 2009 8:18 AM