Click here to Skip to main content
15,791,602 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on concurrent login in 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
Updated 13-Jun-12 3:19am

1 solution

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[^]

best Luck
Share this answer
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