Jerome
10-27-2002, 01:37 PM
Hi,
I SetCookie with:
function SetCookie(name,value){var argv=SetCookie.arguments;var argc=SetCookie.arguments.length;var expires=(argc>2)?argv[2]:null;var path=(argc>3)?argv[3]:null;var domain=(argc>4)?argv[4]:null;var secure=(argc>5)?argv[5]:false;d.cookie=name+"="+escape(value)+((expires==null)?"":(";expires="+expires.toGMTString()))+((path==null)?"":(";path="+path))+((domain==null)?"":(";domain="+domain))+((secure==true)?";secure":"");}
This cookie is set in the following directory:
C/level1/level2/level3/index.htm
After I want to GetCookie in the following directory:
C/level1/level2/index.htm
Problem:
GetCookie doesn't work, however when I place GetCookie in directory level3, level 4 or higher it works.
Question:
Where in the function SetCookie do I need to change the path-name in order to make GetCookie to work.
Thanks in advance,
Jerome
I SetCookie with:
function SetCookie(name,value){var argv=SetCookie.arguments;var argc=SetCookie.arguments.length;var expires=(argc>2)?argv[2]:null;var path=(argc>3)?argv[3]:null;var domain=(argc>4)?argv[4]:null;var secure=(argc>5)?argv[5]:false;d.cookie=name+"="+escape(value)+((expires==null)?"":(";expires="+expires.toGMTString()))+((path==null)?"":(";path="+path))+((domain==null)?"":(";domain="+domain))+((secure==true)?";secure":"");}
This cookie is set in the following directory:
C/level1/level2/level3/index.htm
After I want to GetCookie in the following directory:
C/level1/level2/index.htm
Problem:
GetCookie doesn't work, however when I place GetCookie in directory level3, level 4 or higher it works.
Question:
Where in the function SetCookie do I need to change the path-name in order to make GetCookie to work.
Thanks in advance,
Jerome