Couple of things stand out, but i don't know what might work ...
what about a name attribute for the cfapplication tag? i remember
something about it needing to be named and named consistantly if you're
going to make changes to it.
i'm also wondering about "nothing" vs. "" ??
**********
here is what i'm doing - courtesy Hal Helms - it expires the session
when the user closes the browser window. poof!
<cfif not isdefined ( 'application.applicationName' )>
<cfapplication name="infotree"
clientmanagement="Yes"
sessionmanagement="Yes"
setclientcookies="Yes">
</cfif>
<cfif IsDefined("Cookie.CFID") AND IsDefined("Cookie.CFTOKEN")>
<cfset localCFID = Cookie.CFID>
<cfset localCFTOKEN = Cookie.CFTOKEN>
<cfcookie name="CFID" value="#localCFID#">
<cfcookie name="CFTOKEN" value="#localCFTOKEN#">
</cfif>
and here is what sits behind my logout link:
<CFScript>StructClear(session);</CFScript>
<cflocation URL="#self#?fuseaction=#XFA.continue#" ADDTOKEN="no">
John Jonathan Kopanas wrote:
> Sorry about this stupid question. I have been out of the CF world for
> over
> two years and still making some stupid mistakes. I have the following
> logout file:
>
> <cflock scope="SESSION" type="EXCLUSIVE" timeout="60">
> <cfset session.URLToken="nothing">
> <cfset session.CFID="nothing">
> <cfset session.CFToken="nothing">
> </cflock>
> <cfapplication clientmanagement="No" sessionmanagement="Yes"
> sessionTimeout="#createTimeSpan(0,0,0,1)#"
> applicationTimeout="#createTimeSpan(0,0,0,1)#" setclientcookies="No"
> setdomaincookies="No" name="#attributes.sessionName#">
> <cflocation url="index.cfm?fuseaction=admin.main" addtoken="no">
>
> and for some reason it does not work. When I go back to login the
> session
> it creates for me keeps the session.CFID and session.cftoken to nothing,
> hence it keeps the old session and not the new one. I figured the
> session
> would be expired and a new one would create reseting the session.CFID
> and
> CFToken variables. Can anyone figure out where my logic, in my thought,
> is
> wrong and if possible show me a better way to logout? Thanks.
>
>
>
==^================================================================
This email was sent to: [email protected]
EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]
T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================