I'll ditto Bobby. Either you use a structure, or you fire the developer who adds a session variable without cleaning it up later. ;)
Seriously though - CF controls the session. There is no _supported_ way to nuke/restart a session. Therefore I honestly recommend you stop trying to go down this path. As mentioned before - you can run onSessionEnd/Start manually. While this isn't a "real" start/end, and its not single threaded, you can use this to reinit a user's session variables, which is what you are concerned about anyway. On 8/3/07, Bobby Hartsfield <[EMAIL PROTECTED]> wrote: > Store the user info in a structure within session when they login... like > > Session.user.isLoggedIn > Session.user.userid > Session.user.usernmae > Session.user.etc... > > Then structDelete(session, "user") when you want to log them out > > ..:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:. > Bobby Hartsfield > http://acoderslife.com > > -----Original Message----- > From: James Smith [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 02, 2007 11:45 AM > To: CF-Talk > Subject: Forcing a session to end... > > Is there any way to end a session when a logout link is clicked? > > I have tried... > <cfset temp = onSessionEnd(session,application)> > <cfapplication name="application" > sessiontimeout="#createTimeSpan(0,0,0,0)#"> > > But it leaves the session scope fully populated. > > I have even tried... > <cfset temp = onSessionEnd(session,application)> > <cfapplication name=" application " > sessiontimeout="#createTimeSpan(0,0,0,0)#"> > <cfset temp = structClear(sesion)> > <cflocation url="/"> > > But that doesn't work either. I am sure I am missing something simple but > this is driving me nuts! > > -- > Jay > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285310 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

