ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old May 10th, 2000, 04:20 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
clear the session variable when it is no longer needed

<i><b>Originally posted by : Gho (vsutanon@hotmail.com)</b></i><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 />

Reply With Quote
  #2  
Old May 11th, 2000, 06:31 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
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 />

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingASP Development > clear the session variable when it is no longer needed


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway