net_165
Status: New User - Welcome
Joined: 20 Jul 2006
Posts: 1
Back to top
Posted: Jul 20, 06, 6:44    cookie file name
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
techAdmin
Status: Site Admin
Joined: 26 Sep 2003
Posts: 848
Location: East Coast, West Coast? I know it's one of them.
Back to top
Posted: Jul 20, 06, 10:21    
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.
Display posts from previous:   

All times are GMT - 8 Hours