At 02:01 PM 10/16/02 -0400, FlashGuy wrote: >How can I stop session variables from timing out until the browser is >closed or the user logs out?
You can't really. Because the web is 'stateless' there is no connection between the browser and the server except when a request is actually being processed. In fact that's rather why we have session variables in the first place...to solve that problem. Session variables expire according to a timer from the last request (configurable via the administrator). You can set a very long time-out, and then use one of the available custom tags to blow the variables away on log-out, but there is still no way to know that the user has closed the browser. Still, this may be acceptable so long as you understand that the persistent session variables are taking up space in the CF server's memory, which may be problem if you have lots of sessions and may not if you don't. This problem isn't unique to Cold Fusion, by the way. >--------------------------------------------------- >Colonel Nathan R. Jessop >Commanding Officer >Marine Ground Forces >Guatanamo Bay, Cuba Here's hurrah for old Gitmo on Cuba's fair shore The land of the bedbug the flea and the <ahem> s'more We'll sing of her praises and pray for the day We get the **** out of Guantanamo Bay! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com

