Solved

Session Timeout's; timeout is too early

Posted on 2010-08-26
2
442 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

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…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

717 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