Browser Problems and Cookies
Question: I use you cookie toolbox for my project, but it seems work for IE only, is there a solution to fix it?
anonymous
Answer: The code in my cookie toolbox has been tested with Netscape 4, 6, and 7 and Opera 5, 6, and 7 and works on all of these browsers when the page using the cookie is accessed from a web server. These browsers do not process cookies properly when you are accessing a web page on your own computer. The solution is to either upload the pages to your web server and test them from there, to install a web server on your own computer, or to test on your computer using Internet Explorer (which can handle cookies properly for web pages on your own computer).
The latest browser versions allow cookies to be disabled so you also need to check that you don't have cookies turned off in the browser.
- To check this in Internet Explorer (if for any reason you find it doesn't work there) go into the Tools menu and then into Internet Options. Next select the Privacy page which has options for handling generic first and third party cookies as well as an option to override it for specific web sites.
- To check this in Netscape (or Mozilla) go into the Edit menu and then into Preferences. Next go to the Privacy & Security section and select Cookies. You will also find options there to get the browser to warn you before setting a cookie and also to be able to view and edit all of the cookies you have stored (from all sites, not just the current one).
- To check it in Opera go into the File menu and then into Preferences. Next go to the Privacy page which has options for handling generic normal and third party cookies as well as an option (edit filter servers) to override it for specific web sites.
Note that the different browsers store cookies in different ways so searching the folder where Internet Explorer stores its cookies will not find the Netscape or Opera cookies. The easiest way to check if the browser is actually calling the appropriate routines within the cookie toolbox to set and retrieve coodies is to temporarily add debug_on(); into the script before the calls to the cookie toolbox. You might also consider adding the following code to the body section of your web page to display the content of those cookies currently stored on the local computer by your site (and which are therefore accessible from your page):
<script type="text/javascript">
dump_cookies();
</script>


