jackson
12-18-2004, 01:14 AM
Hi,
I am using the following coding for accessing the cookie.
dokie = document.cookie
dokie=unescape(dokie);
start = dokie.indexOf("name=")+"name=".length;
end = dokie.indexOf(";", start);
if(end==-1)end = dokie.length
document.write(dokie.substring(start, end))
After entering the username, the username is stored in the cookie and it is accessed in another page as "Welcome Jackson"
But if i close the ie window again i go to that same url then i am getting as t=2 instead of jackson(username).
Please Help me.
Jack
I am using the following coding for accessing the cookie.
dokie = document.cookie
dokie=unescape(dokie);
start = dokie.indexOf("name=")+"name=".length;
end = dokie.indexOf(";", start);
if(end==-1)end = dokie.length
document.write(dokie.substring(start, end))
After entering the username, the username is stored in the cookie and it is accessed in another page as "Welcome Jackson"
But if i close the ie window again i go to that same url then i am getting as t=2 instead of jackson(username).
Please Help me.
Jack