Skip to content

Commit

Permalink
Fix EZP-26113: session id is regenerated when publishing content
Browse files Browse the repository at this point in the history
(cherry picked from commit 552ec0e)
  • Loading branch information
Joao Inacio committed Jul 28, 2016
1 parent fcfe5c7 commit f484acf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public static function update( $nodeArray = array() )
$loggedInUser = eZUser::currentUser();
$anonymousUserId = eZUser::anonymousId();
$anonymousUser = eZUser::fetch( $anonymousUserId );
eZUser::setCurrentlyLoggedInUser( $anonymousUser, $anonymousUserId );
eZUser::setCurrentlyLoggedInUser( $anonymousUser, $anonymousUserId, eZUser::NO_SESSION_REGENERATE );
unset( $anonymousUser, $anonymousUserId );
}

Expand Down Expand Up @@ -507,7 +507,7 @@ public static function update( $nodeArray = array() )
// log the previously logged in user if it was changed to anonymous earlier
if ( isset( $loggedInUser ) )
{
eZUser::setCurrentlyLoggedInUser( $loggedInUser, $loggedInUser->attribute( 'contentobject_id' ) );
eZUser::setCurrentlyLoggedInUser( $loggedInUser, $loggedInUser->attribute( 'contentobject_id' ), eZUser::NO_SESSION_REGENERATE );
}
}

Expand Down

0 comments on commit f484acf

Please sign in to comment.