cookie file name
net_165
Status: New User - Welcome
Joined: 20 Jul 2006
Posts: 1
Reply Quote
I create a cookie file in a asp file, the asp file is located in ..\_admin folder, so my cookie file's name is always 'myusername@_admin.txt', and is placed in 'Documents and Settings\myusername\Cookies' path. How can I name the file differently and locate it in different path? I am using function:
function setCookie(NameOfCookie, value, expiredays)
var ExpireDate = new Date ();
ExpireDate.setTime(ExpireDate.getTime() + (expiredays * 24 * 3600 * 1000));
document.cookie = NameOfCookie + "=" + escape(value) +
((expiredays == null) ? "" : "; expires=" + ExpireDate.toGMTString());
}

Thank you
JZ
Back to top
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 4127
Location: East Coast, West Coast? I know it's one of them.
Reply Quote
In other words, how can you make a cookie from one domain get another domain's cookie, right? You can't, for very good reasons.

Other than that, we don't support asp at all here, sorry.
Back to top
Display posts from previous:   

All times are GMT - 8 Hours