asptoday_discuss thread: Setting cookies at client side...
Hi All, Have a pbm in setting persistent cookie at the browser (Netscape 4.07) I've set the cookie as below : ---------------------------------------------------------------------------- --------------------------------------------- <script> var exp = new Date(); var timeoutPeriod = exp.getTime() + (15 * 60 * 1000); exp.setTime(timeoutPeriod); document.cookie = "cookiename=Y;path=/;expires=" + exp.toGMTString(); <./script> --------------------------------------------------------------------- it's been set properly & within the same session i can able to get its value also. but after i close the session (close the browser) & again open the browser it is getting its value as "null". Actually the cookie value should remains the same till it gets expired even though i close the browser. right? Note : The same thing is working fine in IE 5.0. If u've any idea, please let me know ASAP. Thanks in advance, Subha
|





