I was thinking of J2EE session when I wrote that, but you are correct that I should have been clearer, especially when it comes to the OnSessionEnd code. Thanks for making the clarification, because it is an important concept. I was thinking along the lines of the unique ID used to track sessions, which either gets reset or retained depending on how things are set up. From the user's standpoint, J2EE sessions end when the browser is closed, while the more traditional CF sessions do not. From the server's perspective, it is different since a server doesn't know when the browser is closed and it can only rely on the timeout value and the last session access time. This does influence code that deals with these types of custom session tracking solutions, if you are trying to key off of the session token for something or if you have essential code in the OnSesssionStart block in Application.cfc, which won't necessarily be called when logging in, if the session never really ended and the user is coming back with the same CFID/CFTOKEN combo.
-Mike On Dec 10, 2007 3:12 PM, Ian Skinner <[EMAIL PROTECTED]> wrote: > "It ends when the timeout is reached or when the browser window is closed, > depending on > how you have things set up. If you clear session variables upon logout, the > session is still running, but it is empty." > > A point of clarification, the session ONLY ends when the timeout is reached, > or the CF server is stopped. It never ends when the browser is closed. If > you have sessions set up as 'per session' or 'in memory' then the cookies > (CFIDE and CFToken) associating a specific user to a specific session are > cleared when the browser is closed. This means that the user should no > longer have access to the session data, without jury-rigging the correct > cookies with the correct values. But the session is still running. > > This is important to understand if one expects an 'onSessionEnd' event to > fire when a browser is closed. This will not happen. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Get involved in the latest ColdFusion discussions, product development sharing, and articles on the Adobe Labs wiki. http://labs/adobe.com/wiki/index.php/ColdFusion_8 Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:294472 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

