I agree with J.J. 
Just a note, the key for the session will still exist in the
application's session struct until the session completely times out from
the <cfapplication> tag's timeout.  But, the key will have no cfid or
cftoken, so therefore the session is effectively ended. (This applies to
non-J2EE sessions.)  J2EE sessions are a little different.
-Aaron

-----Original Message-----
From: J.J. Merrick [mailto:[EMAIL PROTECTED] 
Sent: Thursday, August 02, 2007 2:46 PM
To: CF-Talk
Subject: Re: Forcing a session to end...

it is....


<cfset StructClear(Session)>


:-)

On 8/2/07, James Smith <[EMAIL PROTECTED]> wrote:
> 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 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:285249
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to