Committer: pkornilov
LJSUP-8676: Create cookie ljuniq if there is no oneU trunk/htdocs/js/livejournal.js
Modified: trunk/htdocs/js/livejournal.js =================================================================== --- trunk/htdocs/js/livejournal.js 2011-04-28 05:52:13 UTC (rev 19003) +++ trunk/htdocs/js/livejournal.js 2011-04-28 07:28:44 UTC (rev 19004) @@ -218,7 +218,7 @@ result = '', i; - var len = 15 + var len = 15; for( i = 0; i < len; ++i ) { result += alpha.charAt( Math.floor( Math.random() * ( alpha.length - 1 ) ) ); } @@ -231,7 +231,11 @@ LiveJournal.checkLjUniq = function() { if( !Cookie( 'ljuniq' ) ) { - Cookie( 'ljuniq', LiveJournal.generateLjUniq(), { domain: Site.siteroot.replace( /^https?:\/\/www\./, '' ) } ); + Cookie( 'ljuniq', LiveJournal.generateLjUniq(), + { + domain: Site.siteroot.replace(/^https?:\/\/www\./, ''), + expires: 1 + } ); } }