Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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.

Thanks.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:17 PM.


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