By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,044 Members | 1,248 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,044 IT Pros & Developers. It's quick & easy.

Javascript Cookies in Firefox

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
> (The javascript is right on the page)

I meant right in the source.

Dec 15 '05 #2

P: n/a

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

P: n/a
Perfect, that was it - thanks a lot!

Dec 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.