469,578 Members | 1,285 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Javascript Cookies in Firefox

Using javascript to set cookies is apparently not working in Firefox.
Here's a simple test page that works in IE, Opera, Netscape, but not
Firefox (The javascript is right on the page):

http://web.njit.edu/~jmb2/Joel/test_css2.php

In any of the browsers besides Firefox, you can set a cookie using PHP
or Javascript, but with Firefox (with the code I'm using), you can only
set a cookie using PHP.

Dec 15 '05 #1
3 6834
> (The javascript is right on the page)

I meant right in the source.

Dec 15 '05 #2

Joel Byrd wrote:
Using javascript to set cookies is apparently not working in Firefox.


That was never very likely unless disabled a user.

It seems Mozilla quite rightly doesn't like the year 0106, which is
what
you get if you use Date.getYear instead of Date.getFullYear.

--
S.C.

Dec 16 '05 #3
Perfect, that was it - thanks a lot!

Dec 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

28 posts views Thread by Noone Here | last post: by
1 post views Thread by ynotssor | last post: by
reply views Thread by dawson | last post: by
1 post views Thread by John A. Bailo | last post: by
16 posts views Thread by retyop | last post: by
3 posts views Thread by goldenv | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.