Hi,
What you have to do is something like this.
1. first prevent the page from caching.
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
2. Add ASP code to check session timeout on to the top of page.
<%
If Session("UserID") = "" Then
Response.Redirect "Login.asp"
End If
%>
HTH
Chamindu
**** DISCLAIMER *****
This e-mail and any attachments thereto are intended for the sole use of
the recipient(s) named above and may contain information that is
confidential and/or proprietary to the hSenid Software International
(Pvt.) Ltd. Any use of the information contained herein (including, but
not limited to, total or partial reproduction, communication, or
dissemination in any form) by persons other than the intended
recipient(s) is prohibited. If you have received this e-mail in error,
please notify the sender immediately and delete it.
-----Original Message-----
From: Arnnie Martinez [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 29, 2004 1:52 AM
To: [EMAIL PROTECTED]
Subject: Re: [ASP] Timeout a Page
I have an idea. On the onload function of the page I need to test
the session timout. Such as:
If Session.timeout < SessionTime then
response.redirect to timeoutpage
end if
However, I do not how to get the value from the Session.timeout. Can
someone help me on this?
Can I use this code <%Session.timeout%> where the variable
Session.timeout?
--- In [EMAIL PROTECTED], "John Vieth"
<[EMAIL PROTECTED]> wrote:
> Just name the back button. I name mine "BackButton." Then, on the
> subsequent page, check the value of "BackButton" just like you'd
check
> any posted field/input, like...
>
> strValue = Request.Form("BackButton")
>
> You'll get a different value depending on which button was clicked.
> You'll have to experiment, but I belive Request.Form("BackButton")
will
> equal "BackButton" if the back button was clicked, and it will
equal ""
> (empty string) if a different button was clicked.
>
> Hope that helps.
>
> - Vieth
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/17folB/TM
--------------------------------------------------------------------~->
---------------------------------------------------------------------
Home : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
Post : [EMAIL PROTECTED]
Subscribe : [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
---------------------------------------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/active-server-pages/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/