Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / June 2005



Tip: Looking for answers? Try searching our database.

onSessionEnd()

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jeby - 29 Jun 2005 20:59 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???

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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.