Avoiding session timeout?

J

jensen bredal

Hello,
This should probably very basic but it still gives me headeachs ;)

I have my app where user log ind and some pages doauto refresh.

i do not want the session to timeout.

How can i do this?
Many thanks in advance

JB
 
B

Brock Allen

You can add a <META> tag like this to refresh the page every 300 seconds:

<META HTTP-EQUIV="Refresh" CONTENT="300">

Each refresh will renew the session cookie.
 
J

jensen bredal

In fact i have a page that does a refesh after an hour(3600) and i set the
"timeout" attribute to 61 .

But it does not help.

Is it necessary that all pages are do a refresh for the sesion to be
renewed?


In Machine.config i recall seeing
"timeout"=Infinite. Is there nothing equivalent for
for web config?

Many thanks
JB
 
B

Brock Allen

ASP.NET has to terminate Session data at some point, otherwise it will grow
unbounded. So unless the client is active it will expire. Change your session
timeout to 120 and leave your META at 3600.
 

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

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top