timeout

R

Richard Roche

My application is timing out between 7 and 8 minutes of
inactivity. I'm using forms based authentication and have
sessionstate timeout="20". I've even displayed this value
on the web page.

There is also a httpRuntime executionTimeout="1200" for
long database queries. Both setting in web.config.

Any suggestions, why i doesn't stay active for 20 minutes?

It redirect back to the login.aspx.

Thanks for any suggestions.
 
G

George Durzi

What's the expiration set to on the FormsAuthentication cookie?

Annoying, but you actually have to set the timeout in several places:

SessionState in web.config
inside your <authentication> section in web.config also

And if you're creating your cookie in code, there too.
 
S

Steven Cheng[MSFT]

Hi George Durzi,

Thank you for using Microsoft Newsgroup Service. Based on your description,
you want to know "What's the expiration set to on the FormsAuthentication
cookie" since you want to set the expiration to a longer timespan.

I think you can set the FormAuthentication's coolie timeout in the ASP.NET
web application's web.config file,
with in the <Authentication> element, such as :

<configuration>
<system.web>
<authentication>
<forms name=".ASPXAUTH"
loginUrl="logon.aspx"
protection="all" <!-- Protection must be identical.-->
timeout="900"
path="/" > <!-- Path must have a compatible scope.-->
</authentication>
....................
</configuration>

Just change that "timeout" attribute.

Please try out the suggestion. If you have any question on it ,please feel
free to let me know.

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top