the cflocation is breaking the cfcookies.
Solution, either don't use the cflocation and use a jscript redirect or
something, or set the cookles conditionally in another page.
this will work..
<cfset structclear(Session)>
<cfcookie name="cfid" expires="NOW">
<cfcookie name="cftoken" expires="NOW">
<cfcookie name="cfglobals" expires="NOW">
<cfcookie name="UserID" expires="NOW">
this will not...
<cfset structclear(Session)>
<cfcookie name="cfid" expires="NOW">
<cfcookie name="cftoken" expires="NOW">
<cfcookie name="cfglobals" expires="NOW">
<cfcookie name="UserID" expires="NOW">
<cflocation url="login.cfm" addtoken="no">
cflocation redirects immediatley and stops processing any cf, therfore the
http header of that page never gets sent to the client so any cookies reads
or writes cannot by deffinition work at all.
-----Original Message-----
From: Haryono ... [mailto:[EMAIL PROTECTED]]
Sent: 09 April 2001 10:26
To: CF-Talk
Subject: Problem with logout
Source code logout page
<cfset structclear(Session)>
<cfcookie name="cfid" expires="NOW">
<cfcookie name="cftoken" expires="NOW">
<cfcookie name="cfglobals" expires="NOW">
<cfcookie name="UserID" expires="NOW">
<cflocation url="login.cfm" addtoken="no">
I use source code above to logout. But when I open
browser to access my web page again, cfid, cftoken and
session variable still exist. Can you help me?
Thank you!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists