469,319 Members | 1,911 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,319 developers. It's quick & easy.

Javascript and Cookies

Hi,
I use Javascript cookies in a web application
with a command like this

document.cookie = NameOfCookie + "=" + escape(value) +
((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());

But it does not work in some cases that I dont understand

I wonder why this happens

Can anyone help me?

Alessandro

Jun 9 '07 #1
1 1344
Rodolo wrote:
I use Javascript cookies in a web application
with a command like this

document.cookie = NameOfCookie + "=" + escape(value)
+ ((expiredays == null) ? "" : "; expires=" +
ExpireDate.toGMTString());

But it does not work in some cases that I dont understand
Here is a document that explains it step-by-step:

http://www.w3schools.com/js/js_cookies.asp

Hope this helps,

--
Bart

Jun 9 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Gowhera Hussain | last post: by
1 post views Thread by John Taylor-Johnston | last post: by
7 posts views Thread by Bert | last post: by
16 posts views Thread by retyop | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Gurmeet2796 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.