Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old May 14th, 2007, 05:58 AM
Authorized User
Join Date: Oct 2006
Location: , , .
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default Session variable expires early

I have a classic ASP web application with a log-in page containing a form for username and password. The ASP page that the form is posted to has the following line at the top:

Session.Timeout = 300

The same page then checks the username and password against the database and, if the details are valid, sets a session variable as follows:

Session("isLogged") = True

So now the user is logged in for a session lasting 5 hours (300 mins). This works fine.

Now, the logged-in user clicks a link which opens a new window. The page that is displayed checks the status of the "isLogged" session variable. If it is True then the page is displayed, otherwise the page redirects to a page that displays the message "your session has timed out".

All this works fine (IE 6+ and Firefox 1+).

HOWEVER - some users report that the session times out early in the new window (within 30 mins). I cannot see a reason for this.

Please can you tell me if I am missing something here, regarding the correct use of session variables.


Similar Threads
Thread Thread Starter Forum Replies Last Post
TIP: Redirecting when session expires jimibt BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 5 November 16th, 2007 05:42 AM
Session expires immediately codebuyer Classic ASP Components 6 March 18th, 2005 12:54 PM
Session expires imediately on logging in codebuyer Classic ASP Professional 3 February 24th, 2005 02:37 AM
deleting files as session expires jaisonkmathews General .NET 4 October 18th, 2004 12:07 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.