You should be able to read Java generated cookies without trouble.
Try here for a "cookie tutorial"
http://cfhub.com/advanced/cookie/index.cfm
> Dear all,
>
> If a cookie variables have been set using javascript, can I read it
directly
> into Cold Fusion's cookie variable ? How ? Is there any
You are missing your single quotes around the cookie value.
Notice that the following works.
document.cookie = 'c#attributes.containerid# = yes';
However, the following does not.
document.cookie = cokname + "=" 'no;';
document.cookie = cokname + "=" + escape(value) + expString;
HTH,
Mike
[To
Well, I defined cokname so maybe thats where I am confused? I need single
quotes even around the variable?
_
From: Michael T. Tangorre [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 03, 2004 7:17 PM
To: CF-Talk
Subject: RE: _javascript_ cookie
You are missing your single quotes around
var never = new Date()
never.setTime(never.getTime() + 2000*24*60*60*1000);
var expString = "; expires=" + never.toGMTString();
document.cookie = 'c#attributes.containerid# = no'+ escape(value) +
expString;
works. oops. thanks.
_
From: Eric Hoffman [mailto:[EMAIL PROTECTED]
Se
No problem.
Those quotes will get you everytime in JS.
> works. oops. thanks.
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
5 matches
Mail list logo