D
duane
Dear Experts:
I have a problem.
When you enter the website I am working on, wherever you go within the
website, the URL address on the website will display:
"http:\\..\index.html", whether you go to "Page1.html", "Page2.html",
etc. The cookies in every page is set on "<BODY onLoad =
"setCookie();">. Except for index.html, all the cookies are set and
written to a textfile correctly in the server. All cookie values in
every page in the website are written to a textfile in the server by
using the SAME PHP script.
My question is: Why is the cookie set in index.html not written to a
textfile in the browser? Is it because of the fact that index.html is
considered to never finish loading because it is the page that always
gets displayed on the URL? Is there a way to force the document to
submit cookies in "index.html" to the server without the user knows
anything about it?
The method that I am using right now is by creating an image object,
e.g. img = new image();, and set image.source to be some PHP file that
will process values of cookies submitted. This works correctly for
most pages but all for one page, e.g. index.html.
duane
I have a problem.
When you enter the website I am working on, wherever you go within the
website, the URL address on the website will display:
"http:\\..\index.html", whether you go to "Page1.html", "Page2.html",
etc. The cookies in every page is set on "<BODY onLoad =
"setCookie();">. Except for index.html, all the cookies are set and
written to a textfile correctly in the server. All cookie values in
every page in the website are written to a textfile in the server by
using the SAME PHP script.
My question is: Why is the cookie set in index.html not written to a
textfile in the browser? Is it because of the fact that index.html is
considered to never finish loading because it is the page that always
gets displayed on the URL? Is there a way to force the document to
submit cookies in "index.html" to the server without the user knows
anything about it?
The method that I am using right now is by creating an image object,
e.g. img = new image();, and set image.source to be some PHP file that
will process values of cookies submitted. This works correctly for
most pages but all for one page, e.g. index.html.
duane