session timeout

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I want to change the session timeout, I try this
- session.timeout =
- <sessionState
mode="InProc
cookieless="false"
timeout="2"
/

It's not work, why

Best regards
 
Hello,

Thanks for your time. As I understand, the problem you are facing is that
session timeout does not take effect on your side. I'd like to share the
following information with you:

Please check if the Session_End event is triggered when the timeout occurs.
The Session_End handler is in Global.asax file.
protected void Session_End(Object sender, EventArgs e)
{
}

If the Session_End is called but the session object is not clear, I believe
that the problem may be caused by IE Caching. You can disable it by adding
the following lines to the beginning of your ASP/ASP .NET pages:

<% Response.CacheControl = "no-cache" %>
<% Response.AddHeader "Pragma", "no-cache" %>
<% Response.Expires = -1 %>

Please refer to the following MSDN article for detailed information:

HOWTO: Prevent Caching in Internet Explorer
http://support.microsoft.com/?id=234067

I am standing by for your result.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top