
May 11th, 2000, 06:31 AM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 22
|
|
|
<i><b>Originally posted by : merLin (driggins@lockbox.com)</b></i><br />Gho,<br /><br />To do this you can do any of a number of things. Session.Abandon is the best, but you are doing it in the wrong place. IIS has a special page it uses for this, so to do this you will need to create a file with the following code:<br /><br /><SCRIPT LANGUAGE="VBScript" RUNAT="Server"><br />Sub Session_OnEnd<br /> Session.Abandon<br />End Sub<br /></SCRIPT><br /><br />and then name this file global.asa and place it in the root of your application, usually wwwroot, or you can check in the IIS settings. Then whenever a user does not log-out, or closes his browser, or even times out, it will call session.abandon and clear out your server's memory. <br /><br />Let me know if you have any questions.<br /><br /> merLin<br /><br /><br />------------<br />Gho at 5/10/2000 2:20:00 PM<br /><br />Hi everyone<br /><br />Please give me some idea of how to clear the session variable of the user who left the web page without going through the log out page. For example, close the browser or type URL to go to other web site. I have session.abandon on the logout page, the session variable still remain in the server if the user do not go through this page. Timeout is set at 30 min.<br /><br />Thank you for you time<br /><br />Gho<br />
|