Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crispy Cookies & Netscape

Status
Not open for further replies.

lotsToLearn

Programmer
Jun 10, 1999
9
CA
Hello World.<br>
<br>
I have written a CGI script that writes a cookie ( using java script ) on the page load event. Once the cookie is written I use the location.replace() method to direct the user to another page. A few pages later I go to read the cookie that was written. Now here's the rub. When accessing the pages with Internet Explorer I am able to read the cookie. However when the pages are accessed with Netscape the cookie, though written, is not read. What gives? Does anybody really know&gt; <br>
<br>
Thanks for your ideas. <br>
<br>
LotsToLearn
 
Did you specify a "root domain" that the cookie can be read by? If you don't specify UP-FRONT that all files within the root directory that the cookie is issued in should have access to it, ONLY THE ISSUING PAGE WILL HAVE ACCESS to the cookie in NS.<br>
(for more help on cookies & JS (especially with NS) go to: ; go to the JavaScript segment; then check out the Advanced Tutorial...there was a NICE segment about cookies somewhere in that tutorial, but I'm not quite sure EXACTLY where.<br>
<br>
<br>
-Robherc<br>
robherc@netzero.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top