Education is the most powerful weapon
which you can use to change the world.
-Nelson Mandela
Home   News   Tips   Glossary   Templates   Forums   Help   Logon   Order   Contact Us  


Active Server Pages Forum
By Richard Rost   Richard Rost on Facebook Richard Rost on Twitter Richard Rost on Google Plus Richard Rost on LinkedIn Email Richard Rost

This forum is for the discussion of developing dynamic web sites in ASP (Active Server Pages).

Click Here To Subscribe to this forum and receive an email update whenever new posts are added, just scroll down to the bottom of this page and enter your email address in the comment form.

Permanent Link
Keywords: asp forum active server pages
Post New Topic

Read Session Variable Timeout by MUBEEZI M @ 8/29/2013
Dear Richard,

Web browsers seem to have a reliable inbuilt mechanism such that after 20min of browser inactivity, the session variable becomes blank. How can i catch that moment before the user's session variable becomes blank? I would like to trigger an event to fire either becomes blank or just after its blank.
Thank you!

Reply from Richard Rost:

Session variables are actually stored on the SERVER, not in the browser. If the server doesn't see activity from you in 20 minutes it clears your variables to save memory. If this is YOUR site, you can prevent that from happening with an inline frame that automatically refreshes every 5, 10, or 15 minutes to keep the user's session alive on the server. I do this on my site. If you look closely at the bottom of my site, there's an inline frame where the copyright notice is. That keeps people from getting logged out of the Online Theater when they're watching classes (watch a 15 minute lesson, go get coffee, and you get logged out because the server hasn't seen you in over 20 minutes - the video itself is playing from your browser cache after it downloads). Note that you can increase this timeout in your ASP code with the Session.Timeout property, but if you have a lot of concurrent users, this can cause your server to run out of memory.
Show Just This Thread        Post Reply

Collapse All Topics


Post Your Comments or Subscribe
    If you would like to be notified of new posts on this forum,
    just enter your email address below. It will be kept private.
If you just want to subscribe to get email updates when this forum is updated, then enter your name and email address and check the Notify Me box below. If you would optionally like to add your comments below to be posted, they are welcome.
  Your Name:  Required
  Your Email:  NOT Public


Sorry about this step. It's just to keep the spam bots away:
  Verify: What is 4+3:
  Notify me when the this forum is updated
  Remember Me for my next comments
Please do not use this form for Customer Service inquiries! If you have questions about your account, shipping info, courses you've ordered, need passwords, etc. please use the Customer Service Center instead.

I value your comments. They will be displayed on this page (above). Your name will be displayed, but your email address will not be.
As always, I promise to never give away your personal information to anyone else, ever.

NOTE: If you don't leave your name and email address, DON'T expect a reply. I can't promise a personal reply to everyone who posts here. I TRY my best, but I cannot guarantee it. If you don't leave your real name and email address, I won't even bother. I usually just hit DELETE. -Richard



Visual Basicindex
Account Login
Online Theater
Lost Password
Free Upgrades
Insider Circle
Student Databases
Change Email
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search Our Site
Waiting List
Production Schedule
Collapse Menus
Live Chat
Customer Support
WalkThru Tutorials
Consulting Services
About Us
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Video Tutorials
MYOLP Memberships
Idiot's Guide to Excel
Volume Discounts
Payment Info
Terms of Sale
Gift CDs
Live Chat
General Info
Support Policy
Contact Form
Email Us
Mailing Address
Phone Number
Fax Number
Course Survey
Facebook    Twitter

Google Plus    LinkedIn

Blog RSS Feed    YouTube Channel
Richard Rost Microsoft MVP