Microsoft
Software
Hardware
Network
Question : Setting javascript cookies properly
I am setting a cookie like so:
document.cookie = 'name=value';
The problem I am having is that after I close the browser, the cookie gets deleted.
How can I set the cookie so that it stays "permenantly"
Answer : Setting javascript cookies properly
just simply put the expiry date to a bigger value, something like
function setCookie(name, value)
{
var expirydate = (new Date(2200, 1, 1)).toGMTString();
document.cookie = name + "=" + escape(value) + "; expires=" + expirydate ;
}
Random Solutions
Replace VPN with MPLS link
Need to monitor specific events in SCOM 2007 R2
ISAPI REWRITE PROBLEM. Getting a 500 internal server error. Need help figuring out why?
Having mail server go out a specific SonicWALL interface?
Import Word Doc with Line Numbers into Access
Server security analysis to determine patch level
Winsock error in XP Professional Error 12029 Provider entry MSAFD Could not make an HTTP connection.
Citrix Online Plugin 12 Deployment - Reconnection options
Workstation Primary Group ID set as Domain Controller
ephone is registed but does not work