Timeout Property for the Session Object in the Web.config file

S

somoza.albert

Hello,

I put the following line into my Web.config file:

<system.web>
<sessionState
mode="InProc"
cookieless="true"
timeout="1"
/>

When I run the application via Visual Studio 2005, it brings up my
main Web Page, but nothing happens after 1 minute. I would have
thought that I would get an error message or some sort of status
message. What am I doing wrong? How can I test out the timeout
feature?

Thanks
Sam
 
N

Nicholas Paldino [.NET/C# MVP]

Sam,

The timeout is for the session state on the server. It is not going to
cause a change in the browser. If your browser tries to reconnect to the
server with that URL (which indicates session state, since it should have
been changed) then ASP.NET should react as if a new session was created.
 

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

Top