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
Access 2007, form datasheet view, change display property of an element based on another element in the record
Removing Rootkit.Agent on Windows XP SP3 ComboFix log attached
windows 7 dual monitor not working
Issue with Thecus 1u4500 not booting
Windows 7 NAT
Auto file move and rename
time duration on cfchart y axis
is there a way to export GFI webmonitor Rules on isa 2006 for webgrade filter
Database on a 64 bit OS - Conection issues
Exchange 2010 Remote Connectivity, SMTP