View Single Post
  #21 (permalink)  
Old 02-18-2008, 10:09 PM
prasannavigneshr prasannavigneshr is offline
D-Web Incredible
 
Join Date: Feb 2007
Posts: 1,321
prasannavigneshr is on a distinguished road
Send a message via MSN to prasannavigneshr
Thumbs up ColdFusion Tips & Tricks - Forcing a user to relog after x number of minutes

Forcing a user to relog after x number of minutes




If you wish for a user to be redirected to the login page after they have been inactive for x number of minutes instead of waiting for them to jump to another page, add the following line inside the <head></head> block of your html:

<META HTTP-EQUIV="refresh" CONTENT="901;URL='login.cfm'">

This assumes that your session timeout is set for 15 minutes (900 seconds).
__________________
Prasanna Vignesh
MCPD | Web Developer
Reply With Quote
Sponsored Links