Advertisement

08.13.2007 at 02:45AM PDT, ID: 22758444
[x]
Attachment Details

Session timeout settings in IIS / ASP.NET

Asked by DerekWatling in Microsoft IIS Web Server, Programming for ASP.NET

Tags: session, timeout, iis

I am working on a subscription only site where tracking of which users are logged in is vital. I am using session variables to track user information that is used on each page and a database that records the last access time with each page request. Using JavaScript the user is automatically logged out after 20 minutes of no activity (mouse click or keypress on the page). When a user closes the browser without logging out the system checks the database time stamp and will consider them to be logged in for 20 minutes from the last access time.

In the website configuration in IIS I have "Enable session state" enabled and the "Session timeout" set to 20 minutes.

In the Global.asax Session_Start I have "Session.Timeout = 20"

My problem is that after working on the site for 20 minutes the session variables are being cleared, so the system thinks you are logged out.Start Free Trial
[+][-]08.13.2007 at 03:47AM PDT, ID: 19682651

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.13.2007 at 03:50AM PDT, ID: 19682663

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.13.2007 at 06:39AM PDT, ID: 19683862

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.13.2007 at 07:07AM PDT, ID: 19684102

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.13.2007 at 07:29AM PDT, ID: 19684330

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.13.2007 at 07:56AM PDT, ID: 19684601

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft IIS Web Server, Programming for ASP.NET
Tags: session, timeout, iis
Sign Up Now!
Solution Provided By: DropZone
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628