ASP.NET session state after closing browser -
i use vs2010, c# develop asp.net web app, users can login own username/pass , can view site, want limit users each users cannot login simultaneously 1 username, i.e. when user has logined username, username cannot logined again until have logout, create session each user when logins (session["userid"= user_id_obtained_from_database), i'm going check active sessions when when user logins, i'll allow user login if there no active session["userid"] userid
i remove user sessions when logouts, happens when user closes browser page? in case how can destroy user session id can login again? user session remain open until session expires? if user closes browser page (instead of loging out), cannot login again until sessions expires on server?
please me thanks
you can fire ajax call on body onbeforeunload
event register exit of page. if 1 of these no further page request user has left site.
Comments
Post a Comment