C
changed
I have an application that works almost all of the time but there is an
inconsistent error with some browsers (some Mac, some PC). It seems that
the cookie won't get written before the redirect. If I turn on cookie
prompting my computer will stall just after this cookie is written (if it's
even written) *MOST* of the time.
setCookie("FC2", escape(escape(getCookie("FC"))), "", "/",
".lacs.utexas.edu", false);
window.location = "http://www.lacs.utexas.edu/logon.asp?step=2";
I can't use Server-Side Scripting, as JavaScript is necessary to write the
cookie (ASP and the server that writes the original cookie I'm using don't
agree about URL encoding). Even the ASP redirect won't work once the
JavaScript has been written to the client.
Is there a better solution than window.location or can I stick the
window.location further down in the code, perhaps giving the client time to
finish writing the cookie? Do you think this is even the problem?
Sorry if this doesn't make sense, this has been a frustrating problem for
the past week.
inconsistent error with some browsers (some Mac, some PC). It seems that
the cookie won't get written before the redirect. If I turn on cookie
prompting my computer will stall just after this cookie is written (if it's
even written) *MOST* of the time.
setCookie("FC2", escape(escape(getCookie("FC"))), "", "/",
".lacs.utexas.edu", false);
window.location = "http://www.lacs.utexas.edu/logon.asp?step=2";
I can't use Server-Side Scripting, as JavaScript is necessary to write the
cookie (ASP and the server that writes the original cookie I'm using don't
agree about URL encoding). Even the ASP redirect won't work once the
JavaScript has been written to the client.
Is there a better solution than window.location or can I stick the
window.location further down in the code, perhaps giving the client time to
finish writing the cookie? Do you think this is even the problem?
Sorry if this doesn't make sense, this has been a frustrating problem for
the past week.