The best method is
<cfif IsDefined("Cookie.CFID") AND IsDefined("Cookie.CFTOKEN")>
<cfset cfId_local = Cookie.CFID>
<cfset cftoken_local = Cookie.CFTOKEN>
<cfcookie name="CFID" value="#cfId_local#">
<cfcookie name="CFTOKEN" value="#cftoken_local#">
</cfif>
On 8/29/07, Brad Wood <[EMAIL PROTECTED]> wrote:
>
> You could use the window onbeforeunload event to make an Ajax call back
> to the server to notify your app the session has ended.
>
> In general with url vars managing your session state you are probably
> going to have some problems. Not to mention the url hacks someone could
> try to exact against your server spoofing other logged in users...
>
> ~Brad
>
> -----Original Message-----
> From: Brian Dumbledore [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 28, 2007 5:35 PM
> To: CF-Talk
> Subject: how to end a session
>
> I do not use cookies, I use url based session management, how do I
> tackle browser close session ending? currently if they go to the history
> and select the link back, I am still logged in.
>
> Is there a way to detect browser close, like in javascript can I do some
> sort of java: finally {} which will structClear(session) or so???
>
> What is the solution?
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:287345
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4