Web.config timeout
From: LisaConsult (lisaconsult_at_online.nospam)
Date: 11/01/04
- Next message: Damian M: "RE: Cant write to a file"
- Previous message: Andy Fish: "Re: creating a user profile for the aspnet user"
- Next in thread: [MSFT]: "RE: Web.config timeout"
- Reply: [MSFT]: "RE: Web.config timeout"
- Reply: [MSFT]: "RE: Web.config timeout"
- Reply: Ravichandran J.V.: "Re: Web.config timeout"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 1 Nov 2004 13:03:07 -0800
The user has indicated that the application seems to be kicking her out, even
though she is sure that she is submitting a form faster than every 30
minutes. I thought that I had set the Web.Config on the ASP.NET application
to time out after 30 minutes of inactivity, but maybe I don't have something
set up correctly. Here's the basis of my Web.Config (stripped down without
comments):
<?xml version="1.0" encoding="UTF-8" ?>
<configuration>
<appSettings>
<add key="ConnectionString" value="User ID=userid;Initial
Catalog=dbname;Data Source=servername.net;password=userpassword" />
</appSettings>
<location path="ForgotPswd.aspx"><system.web><authorization><allow
users="*" /></authorization></system.web></location>
<system.web>
<sessionState mode="InProc"
timeout="30" />
<compilation debug="true"/>
<customErrors mode="Off"/>
<authentication mode="Forms">
<forms name=".ASPXAUTH"
loginUrl="login.aspx" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</configuration>
Additionally, I have this in the Page_Load of the web page:
Response.AddHeader("Pragma", "no-cache")
Response.Expires = -1
Response.Expiresabsolute = Now().Subtract(New TimeSpan(1, 0, 0, 0))
Response.CacheControl = "no-cache"
Do you see any reason why it would expire unless they truly had 30 minutes
of no activity submitted to the server? Is there anything wrong here?
Thanks.
- Next message: Damian M: "RE: Cant write to a file"
- Previous message: Andy Fish: "Re: creating a user profile for the aspnet user"
- Next in thread: [MSFT]: "RE: Web.config timeout"
- Reply: [MSFT]: "RE: Web.config timeout"
- Reply: [MSFT]: "RE: Web.config timeout"
- Reply: Ravichandran J.V.: "Re: Web.config timeout"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]