Solved

Session Timeout's; timeout is too early

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

707 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now