Simple... While structClear(session) will wipe all of the session data it will also remove the sessionid, cftoken and urltoken so the very next page that tries to access any session information will error.
I can (and currently do) manually clear individual keys from the session when the user clicks on logout but I can imagine a situation where in 12 months some other developer stored some new info in the session scope that isn't being deleted on logoff and causes a debugging problem as the application breaks. If you could force a user to get a new session ID you could forget about any data left in the old session because it would no longer be in use, add to this the fact that the new session would run the onSessionStart() function and initialise all the variables again and you can surely see why this is much easier than manually deleting some data then reinitializing some vars by hand. -- Jay -----Original Message----- From: Raymond Camden [mailto:[EMAIL PROTECTED] Sent: 03 August 2007 13:18 To: CF-Talk Subject: Re: Forcing a session to end... James - I have to ask though - why? The ID value is a ColdFusion concern. The server sets it up. It is not - and should not - be something you are concerned with. You need to concern yourself with the data, and as others have pointed out here there are simple ways to clear the data. On 8/3/07, James Smith <[EMAIL PROTECTED]> wrote: > All this being said, is there any way I can force a user to get a new > session id. I can clean up the old session by hand but I need them to be > pushed into a new session. > > -- > Jay > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:285305 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4