Changeset 2776

Show
Ignore:
Timestamp:
07/14/08 22:46:42 (3 months ago)
Author:
bchoate
Message:

Fixed duration of mt_commenter cookie when 'remember me' option is checked. BugId:80430

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-41/lib/MT/App.pm

    r2772 r2776  
    11641164    my $timeout; 
    11651165    if ( $user->auth_type eq 'MT' ) { 
    1166         $timeout = '+' . $app->config->UserSessionTimeout . 's'; 
     1166        if ($app->param('remember')) { 
     1167            # 10 years, same as app sign-in 'remember me' 
     1168            $timeout = '+3650d'; 
     1169        } else { 
     1170            $timeout = '+' . $app->config->UserSessionTimeout . 's'; 
     1171        } 
    11671172    } else { 
    11681173        $timeout = '+' . $app->config->CommentSessionTimeout . 's';