Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Redirecting the page on Session.Timeout

Thread Tools

Redirecting the page on Session.Timeout

Posts: n/a
When a Session timeout occurs, I get a 403 - Forbidden. The address bar
contains the path that I was intending to go to but couldn't because of the

How can I redirect the page when a Session.Timeout occurs?



Reply With Quote
Ömür Ölmez
Posts: n/a

You can see if a session was timeout by checking its value. After
then, you can simply use Response.Redirect.

For example, assume you set a session named "loggedin" :

if Session("loggedin")="" then
end if

Since redirect headers must the first (and only for old borwsers as
I know) header, this code is placed to top of the page.

Omur Olmez

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error when redirecting to an asp page from an aspx page Loui Mercieca ASP .Net 3 09-03-2005 04:31 PM
Redirecting Mobile Page to a different page and come back Sathish Kumar K ASP .Net Mobile 1 07-14-2005 10:37 AM
Redirecting to page page... digime HTML 2 02-10-2005 06:24 PM
Re: redirecting from .aspx page to .asp page Jeff Trotman ASP .Net 0 07-16-2003 04:25 AM
Re: redirecting from .aspx page to .asp page Steve C. Orr, MCSD ASP .Net 0 07-15-2003 12:18 AM