I use Google Chrome as my default internet browser, and I'm testing a code I made in HTML which uses cookies to store a variable. It works fine in Chrome and Firefox, but seems not to save any cookies in IE8, and the IE8 seems to have active the cookies. What can be?
1 Answer
Maybe it's not about what browser is the default? Internet Explorer requires a domain extension to save cookies, and if you're using localhost
, it won't save them. Try to make some test domain name like mytestdomain.local
and set apache up so that it will respond to it.
Then make a hosts file entry that will point mytestdomain.local
to 127.0.0.1
and it should work.
-
-
Then please show how you are trying to use cookies, attach some code to the question. Jun 8, 2010 at 6:23