Ok, I found the problem. While setting the cookie with javascript, I was
writing the expiration date in a different line of code, like this:

document.cookie="cookiename=cookievalue";
document.cookie="expires=anydate";

the correct syntax is:

document.cookie="cookiename=cookievalue;expires=date";

Just in case you face the same situation in the future.

Thanks and Regards!

-----Original Message-----
From: Ricardo Villalobos [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 18, 2000 5:21 PM
To: CF-Server
Subject: RE: Cookies...


Due to some requirements in my project, I have to set some cookies using
JavaScript code, not the cfcookie Tag, and these are the cookies that are
not written to the hard drive when I close the browser... (that�s why I
think this is related to the expires property). The format that I am using
for the expiration date is: Wdy, DD-MM-YY HH:MM:SS GMT.

Thanks again.

-----Original Message-----
From: Kaigler [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 18, 2000 5:15 PM
To: CF-Server
Subject: Re: Cookies...


to set a cookie to never expire try:
cfcookie name=dbcookie value = '#tempvalue#' expires=NEVER

this will allow you to close the browser and come back woth the cookie stil
intacted.




At 05:07 PM 12/18/2000 -0600, you wrote:
>Hi,
>
>I need your help guys. I am setting four different cookies in my ColdFusion
>application. I can read and write values during the Browser session with no
>problems, but once I close the browser and open it again, the cookies are
>gone. Checking the cookie text file, only the CFTOKEN and CFID are set, all
>the ones that I used are not there. I know that this must be related to the
>"expires" property set on the cookie, but the format is ok (I actually
check
>its value during the session and it looks fine). The problem is that when I
>close the browser, the text file is not affected at all. Any ideas?
>
>One more question...
>
>Is there some way to change the cookie expiration date set by the
>cfapplication tag when you use session management?
>
>Thanks in advance!
>
>Ricardo Villalobos
>Dimasys, Inc.
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to