On 4/2/07, Les Mizzell <[EMAIL PROTECTED]> wrote:
> Ok - have an app with a logout page that destroys all client/session
> variables. No problem. Works great.
>
> BUT - what if somebody doesn't log out and just closes the browser? Is
> there any way to destroy everything when that happens?
>

Les,

I've used this a number of times.

<cfif isdefined("cookie.CFID")
        <cfcookie name="CFID" value="#cookie.CFID#">
</cfif>
<cfif isdefined("cookie.CFTOKEN")
        <cfcookie name="CFTOKEN" value="#cookie.CFTOKEN#">
</cfif>

This basically copies the user session cookies back onto themselves,
but with no expiration date. This turns them into a session cookie,
which are destroyed when the browser is closed.

Dean

-- 
__________________________________________
Dean Lawrence, CIO/Partner
Internet Data Technology
888.GET.IDT1 ext. 701 * fax: 888.438.4381
http://www.idatatech.com/
Corporate Internet Development and Marketing Specialists

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion MX7 by AdobeĀ®
Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. 
Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV

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

Reply via email to