I am currently programming an app and would like to make it so that if the user
leaves the browser open and their session times out, it will kick them back to
the login screen...
Is this possible at all???
Thanks!
Josh
Neculai Macarie - 30 Jun 2005 10:00 GMT
> I am currently programming an app and would like to make it so that if the user
> leaves the browser open and their session times out, it will kick them back to
> the login screen...
>
> Is this possible at all???
You want to push the browser to the login screen after the session timeouts
? without the user making a new request ?

Signature
<mack />
dempster - 30 Jun 2005 12:58 GMT
You could set an expiration time period when you send pages to the browser by
setting the Refresh header to a set number of seconds:
CFHEADER NAME="Refresh" VALUE="600"
This would reload the page. Assuming your application.cfm is set to check the
session status and redirect to a logon page, this might accomplish what you are
asking.
Otherwise, as was noted, you can't really change the browser status until the
user makes a new request.
-Paul
jdeline - 30 Jun 2005 15:57 GMT
You might consder a refresh metatag:
<META HTTP-EQUIV=Refresh CONTENT="600; URL=http://www.mysite.com/login.htm">
This loads the login page 600 seconds after this page is loaded.