madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r21630: LJSV-2133: Domain mapping broken for aut...

Committer: sbelyaev
LJSV-2133: Domain mapping broken for authorized users (work as redirect to login.bml)
U   trunk/cgi-bin/LJ/Session.pm
Modified: trunk/cgi-bin/LJ/Session.pm
===================================================================
--- trunk/cgi-bin/LJ/Session.pm	2012-04-04 08:06:47 UTC (rev 21629)
+++ trunk/cgi-bin/LJ/Session.pm	2012-04-04 10:55:33 UTC (rev 21630)
@@ -619,6 +619,7 @@
 sub session_from_external_cookie {
     my $class = shift;
     my $opts = ref $_[0] ? shift() : {};
+    my $expires = $LJ::DOMSESS_EXPIRATION || 0; # session-cookie only
 
     my $no_session = sub {
         my $reason = shift;
@@ -630,7 +631,7 @@
             my $domain = $1;
 
             set_cookie(
-                'ljdomsess.__external' => '',
+                'ljdomsess.__external' => $sess->loggedin_cookie_string,
                 path       => '/',
                 http_only  => 1,
                 domain     => $domain,

Tags: livejournal, madeon, pm, sbelyaev
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