timeout must be greater than 0 or you will get an error. If you set the timeout to a low number, the session will timeout everytime the user stops to just read the page.
the session cannot be closed when the user clicks to close the browser. Closing the browser is a client side event which does not get back to the coldfusion server.
My solution is to use both a session variable and a session cookie (cfcookie without setting an expiration date). With no expiration date, the cookie only lasts as long as the browser is open. So the cookie takes care of disconnecting the user when he closes the browser and the session variable takes care of timing out the user if he leaves his computer idle for too long (1 hour, 20 minutes, 8 hours- whatever you set as the timeout).
Main Topics
Browse All Topics





by: NushiPosted on 2007-02-28 at 07:18:16ID: 18625635
http://www.school-for-cham pions.com/ coldfusion / sessionva riable.htm
and set the time out to be -1
Nushi.