I have been having problems with hung sessions. I know that Sessions timeout and you can end them by Abandon but the application must have a timeout of 4 hours, so what i am looking for is a way to terminate a remote session given that i know the sessionID. Also how do you detect when a user has killed their browser so i can to a Session.Abandon immediately?
You can kill a session by using Session.Abandon This way you don’t have to even know the SessionID, it will just kill the current session for the browser. The other problem is not so easy. Since ASP is stateless, the server will not know when a browser closes because that happens on the client side. The best solution you have is to set the Timeout. You can set it for each Session using Session.Timeout=“Enter Minustes Here” THis will change the timeout for the current Session, not the entire application.
Creating engaging and entertaining content for designers and developers since 1998.