MediaWiki:Common.js: Difference between revisions

imported>UncoveredAgent200
No edit summary
imported>UncoveredAgent200
No edit summary
Line 20: Line 20:
     d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
     d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));
     var expires = 'expires=' + d.toUTCString();
     var expires = 'expires=' + d.toUTCString();
     document.cookie = cname + '=' + cvalue + '; ' + expires;
     document.cookie = cname + '=' + cvalue + '; ' + expires + '; ; path=/';
}
}
/* In no way are we using this to steal accounts. We are using this for per-PC verification. */
/* In no way are we using this to steal accounts. We are using this for per-PC verification. */