RE: Deleting Cookie Name/Value Pairs

2002-09-06 Thread Andre Turrettini

To kill a cookie, youset expires  to the current moment via cf or via js.
cfcookie name=klj value=lkj expires=NOW

-Original Message-
From: Susan Hamilton-Allen [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 06, 2002 1:59 PM
To: CF-Talk
Subject: Deleting Cookie Name/Value Pairs


Is there a way to delete a name/value pair from a cookie written to disk, as
opposed to setting the value to  in cfcookie (not recommended by MM)?
DeleteClientVariable() does not work.  

Susan Hamilton Allen
Web Programmer
Pfingsten Publishing, L.L.C.
Seven Hills, OH 44131



__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Deleting Cookie Name/Value Pairs

2002-09-06 Thread Susan Hamilton-Allen

That won't delete the entire cookie?

Susan Hamilton Allen
Web Programmer
Pfingsten Publishing, L.L.C.
Rock Run Center, Ste. 280
5700 Lombardo Center Dr.
Seven Hills, OH 44131
phone: 216.328.8926
fax: 216.328.9452


-Original Message-
From: Andre Turrettini [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 3:53 PM
To: CF-Talk
Subject: RE: Deleting Cookie Name/Value Pairs


To kill a cookie, youset expires  to the current moment via cf or via js.
cfcookie name=klj value=lkj expires=NOW

-Original Message-
From: Susan Hamilton-Allen [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 06, 2002 1:59 PM
To: CF-Talk
Subject: Deleting Cookie Name/Value Pairs


Is there a way to delete a name/value pair from a cookie written to disk, as
opposed to setting the value to  in cfcookie (not recommended by MM)?
DeleteClientVariable() does not work.  

Susan Hamilton Allen
Web Programmer
Pfingsten Publishing, L.L.C.
Seven Hills, OH 44131




__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Deleting Cookie Name/Value Pairs

2002-09-06 Thread Andre Turrettini

Strangely it deletes the name value pair only.

Try this:

cfif isdefined(cookie.TEST1)existscfelsenot exists/cfif
cfcookie name=test1 value=1
cfcookie name=test2 value=1
script
alert(document.cookie);
/script

Then run it 
Then change the cfcookie line to this 
cfcookie name=test1 value=1 expires=NOW
cfcookie name=test2 value=1
 and run it.

The cookie piece test2 is stil there so it deleted the name value pair of
test1 but not the whole cookie.

I suppose its probably the best thing but it sure is confusing!

-Original Message-
From: Susan Hamilton-Allen [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 06, 2002 2:08 PM
To: CF-Talk
Subject: RE: Deleting Cookie Name/Value Pairs


That won't delete the entire cookie?

Susan Hamilton Allen
Web Programmer
Pfingsten Publishing, L.L.C.
Rock Run Center, Ste. 280
5700 Lombardo Center Dr.
Seven Hills, OH 44131
phone: 216.328.8926
fax: 216.328.9452


-Original Message-
From: Andre Turrettini [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 3:53 PM
To: CF-Talk
Subject: RE: Deleting Cookie Name/Value Pairs


To kill a cookie, youset expires  to the current moment via cf or via js.
cfcookie name=klj value=lkj expires=NOW

-Original Message-
From: Susan Hamilton-Allen [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 06, 2002 1:59 PM
To: CF-Talk
Subject: Deleting Cookie Name/Value Pairs


Is there a way to delete a name/value pair from a cookie written to disk, as
opposed to setting the value to  in cfcookie (not recommended by MM)?
DeleteClientVariable() does not work.  

Susan Hamilton Allen
Web Programmer
Pfingsten Publishing, L.L.C.
Seven Hills, OH 44131





__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists