Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function setCookie(cname, cvalue, exdays) {
- var d = new Date();
- d.setTime(d.getTime() + (exdays*24*60*60*1000));
- var expires = "expires="+d.toUTCString();
- document.cookie = cname + "=" + cvalue + "; " + expires;
- }
- setCookie('op','username=xiali&password=31C9CDA783173B7E17DFFD199F7B8F',5);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement