471,859 Members | 1,865 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,859 software developers and data experts.

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 1388
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
NeoPa
reply views Thread by NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by
aboka
reply views Thread by aboka | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.