refreshSessionAction() public method

Refresh given session.
public refreshSessionAction ( string $sessionId, Request $request ) : UserSession
$sessionId string
$request Symfony\Component\HttpFoundation\Request
return eZ\Publish\Core\REST\Server\Values\UserSession
Example #1
0
 /**
  * Refresh given session.
  *
  * @param string $sessionId
  *
  * @throws \eZ\Publish\Core\Base\Exceptions\UnauthorizedException If the CSRF token is missing or invalid.
  *
  * @return \eZ\Publish\Core\REST\Server\Values\UserSession
  *
  * @deprecated Deprecated since 6.5. Use SessionController::refreshSessionAction().
  */
 public function refreshSession($sessionId, Request $request)
 {
     @trigger_error(E_USER_DEPRECATED, 'The session actions from the User controller are deprecated since 6.5. Use the SessionController instead.');
     return $this->sessionController->refreshSessionAction($sessionId, $request);
 }