[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Session Timeout's; timeout is too early

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

656 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