title: ASP.NET session state after closing browser
body: <p>I use VS2010, C# to develop my ASP.NET web app, my users can login with their own username/pass and then they can view site, I want to limit users so that each users cannot login simultaneously with one username, i.e. when a user has logined with his username, he this username cannot be logined again until we have logout, I create a session for each user when he logins (session["userid"= user_id_obtained_from_database), I'm going to check all active sessions when when a user logins, I'll only allow my user to login if there is no active session["userid"] with his userid</p>
  
  <p>I remove all user sessions when he logouts, but what happens when a user suddenly closes his browser page? in this case how can I destroy user session id so that he can login again? will user session remain open until the session expires? so if a user closes browser page (instead of loging out), he cannot login again until his sessions expires on server?</p>
  
  <p>please help me
  thanks</p>