Палсеич— (lusever) wrote in changelog,
Палсеич—
lusever
changelog

[livejournal] r19004: LJSUP-8676: Create cookie ljuniq if ther...

Committer: pkornilov
LJSUP-8676: Create cookie ljuniq if there is no one
U   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
+		} );
 	}
 }
 

Tags: js, livejournal, lusever
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments