Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on concurrent login in asp.net for that m maintaining one table with a flag. as soon as the user logs in it gets inserted in table with flag as '1' .Till this flag remains '1' ,no other user with same credentials can logs in and at the time of log out and session expiry m updating the table n making it '0' so that other user can log.
but there are two situation arising where the flag will remain 1.
1.When user closes the browser without log out.
2.when user navigates/changes the url.



so i just want to know will the session end at the specific time if the browser is closed before timeout or what will happen actually to session when browser is closed..?


plz help....thanx in advance
Posted
Updated 13-Jun-12 2:19am
v2

1 solution

hi,
When you close your browser it I think the session still exists on the server. And once the timeout has elapsed it gets deleted.

What brought me to this conclusion? check the below link

http://msdn.microsoft.com/en-us/library/ms972429.aspx[^]

best Luck
 
Share this answer
 
Comments
Zupr!y@ 13-Jun-12 8:45am    
i have one doubt suppose i m executing a stored procedure at session_end(global.asax) to update my table and updating flag as '0'(my session time out is 10 mins).Now i closed the window before 10 mins so the proc which m caling at session_end will run after 10 min my table will ge updated ryt.?

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