470,625 Members | 1,992 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,625 developers. It's quick & easy.

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

ABC
How to automatic redirect if session timeout using ASP.NET 1.1?
Apr 6 '06 #1
3 3569
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.
Apr 6 '06 #2
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
"ABC" wrote:
How to automatic redirect if session timeout using ASP.NET 1.1?

Apr 6 '06 #3
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.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"ABC" <ab*@abc.com> wrote in message news:ug****************@TK2MSFTNGP02.phx.gbl...
How to automatic redirect if session timeout using ASP.NET 1.1?

Apr 6 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Weave | last post: by
1 post views Thread by Anders Jacobsen | last post: by
2 posts views Thread by pradeep_TP | last post: by
1 post views Thread by Clare Strickson | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.