| Back to top |
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
Back to top
Status: Site Admin Joined: 26 Sep 2003 Posts: 848 Location: East Coast, West Coast? I know it's one of them. |
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. |
|||||
|
All times are GMT - 8 Hours
|
||||||
Contact Us
Hosting: Pair Networks: 0.222
Forum Software © 2001–2006 phpBB
techForum Style © 2003–2006 techpatterns.com
info
Hosting: Pair Networks: 0.222
Forum Software © 2001–2006 phpBB
techForum Style © 2003–2006 techpatterns.com
info