How to automatic redirect if session timeout using ASP.NET 1.1?

T

Tim Payne

That's an interesting one, as you can't necessarily guarantee that the
user's still there when the session times out. Can you give a bit more of an
idea of what problem you're trying to solve?

Tim.
 
G

Guest

If a session variable contains nothing then you know it has timed out.

Something like :

If Session("MyID") <> "" then
'OK
else
'Timed out
Response.redirect("wherever.aspx")
end if
 
J

Juan T. Llibre

That can't be done with *any* version of ASP.NET.

What you want to do is impossible.

If the session times out, you can't guarantee that the client
still has his browser opened to a page at your site.

In fact, people seldom do that.
They've likely moved on to some other site way before the session times out.
 

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,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top