You can't do that using ASP, since ASP runs on the server, and once a page
is sent to the client, the server doesn't know anything about it anymore.
Instead, you can create a client-side refresh, eg using a javascript
timer -or- a meta refresh tag, that redirects the user after 20 minutes, eg:
<head>
<meta http-equiv="refresh" content="1200;URL=/loginpage.asp" />
</head.
Cheers
Ken
"Iona" <io**********@hotmail.com> wrote in message
news:49*************@Asp.ForumsZone.com...
: Hi,
:
: usually session expires in 20 minutes, well mine is and I want to redirect
the user to an error page telling them that their session has expired and
they need to login again. How do I code that and where should I put it?
Thanks.
:
: -----------------------------
: This message is posted by
http://Asp.ForumsZone.com
: