hi stefano,
I have read your message and i don't know what do you mean by your question "if there
a strategy to let the session be aware of the timeout", but use the session in my
working
and what i am doing is that i ask in every page if the session have been expired
or not, then i can warn the user.
example:
<%
if session("sch_id")="" or session("tech_id")="" then
%>
Your Session has been expired <br>
<a href="out.asp">RE-LOGIN</a>
<%
response.end
end if
%>
an easy way is to put this sentences in a file and call him in every page by the
include sentence.
example:
<!--#include file="validate.asp"-->
that all i had i will be very greatfull if you send me another strategy when you
found...
bye bye
Stefano Giberti <[EMAIL PROTECTED]> wrote:
I would like to know whether I can warn the user about the expired
session or application timeout, by displaying an "inactivity" page.
As You know, the user notices that the session timeout has expired
only when he tries to move from the current (expired) page, that
doesn't change at timeout.
Scripts like the following do not solve the problem. A script like
that should be implemented in each and every page, what I need is
some strategy to let the session be aware of the timeout and do
something. That is, I would like a session "On_Timeout" event, but
there isn't any.
many thanks.
onmousemove="resetCounter()" onclick="resetCounter()"
onScroll="resetCounter()">
var seconds=300;
function countDown() {
if(seconds document.location.href="inactivity.asp";
}
seconds--;
window.setTimeout("countDown()",1000);
}
function resetCounter() {
seconds=300;
}
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
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/
---------------------------------
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspClassicAnyQuestionIsOk/
<*> 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/