Solved

Session Timeout's; timeout is too early

Posted on 2010-08-26
2
440 Views
Last Modified: 2012-05-10
Hey Guys,

A client is complaining about their website timing out and logging them off too quickly.  I found this in the global.asax page.

        Session.Timeout = 60
        Session("Start") = Now
        Application.Lock()
        Application("ActiveUsers") = CInt(Application("ActiveUsers")) + 1
        Application.UnLock()

I also found this commented out in the master page file

       If Not Session("user") Is Nothing Then
           ' Response.AppendHeader("Refresh", Convert.ToString((Session.Timeout * 60) + 10) & "; url=/timeout.aspx")
        End If

So my question is.. what is the best way to time someone out after 30 mins because the above times me out quicker than that.
0
Comment
Question by:lino_evolution
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 18

Accepted Solution

by:
Dennis Aries earned 50 total points
ID: 33532333
I assume here that you are using the  Session_onStart()  method to set the timeout now.

To change this value for an entire application, open Internet Services Manager, go to the Home Directory tab of the application, click on configuration, and alter the Session timeout field on the "App Options" tab. This metabase setting is also exposed to ADSI.
0
 

Author Comment

by:lino_evolution
ID: 33534297
No change in the timeout.  In fact I think it timed out quicker.

I also see this in the webconfig file

            <authentication mode="Forms">
                  <forms timeout="40"/>
            </authentication>
            <httpRuntime executionTimeout="2400"/>
            <sessionState timeout="40"/>

now if that 40 means 40 minutes.  There is no way it is timing out after 40 mins.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question