?
Solved

Session Timeout's; timeout is too early

Posted on 2010-08-26
2
Medium Priority
?
443 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 200 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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Suggested Courses

765 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