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 Back to top |
|||||
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 |
|||||
All times are GMT - 8 Hours
|