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
Need to strip everything from document.domain
MS Excel 2007 & PDF - Exporting to PDF takes long hours!
Is there a page limit for crystal reports for export to pdf
Extract / Create thumbnails (1st page) for office documents using PHP on Windows or Linux/Mac server
server name
DNS Search List appending to all nebios / dns names
VBA Excel UserForm Email Hyperlink
Perl Iteration issue
XP install without access to CD drive
google docs shrink to fit