Skip to content

Commit

Permalink
Fix EZP-29418: Wrong Session Name after EZP-29390
Browse files Browse the repository at this point in the history
  • Loading branch information
blankse committed Jul 16, 2018
1 parent 11828f6 commit f4f25d6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/ezsession/classes/ezsession.php
Expand Up @@ -269,9 +269,11 @@ static protected function registerFunctions( $sessionName = false, ezpSessionHan
return false;

$ini = eZINI::instance();
if ( $sessionName !== false && $sessionName !== session_name() )
if ( $sessionName !== false )
{
session_name( $sessionName );
if ( $sessionName !== session_name() ) {
session_name( $sessionName );
}
}
else if ( $ini->variable( 'Session', 'SessionNameHandler' ) === 'custom' )
{
Expand Down

0 comments on commit f4f25d6

Please sign in to comment.