Your host:
Stephen Chapman
Stephen Chapman

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.

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>

go to top

Add to del.icio.us

Loans - Guitar Lessons - Car Insurance - Credit Cards