WriteSafeSessionHandler::read

public WriteSafeSessionHandler::read($session_id)

Reads the session data.

Parameters

string $sessionId Session ID, see http://php.net/function.session-id:

Return value

string Same session data as passed in write() or empty string when non-existent or on failure

Overrides SessionHandlerInterface::read

See also

http://php.net/sessionhandlerinterface.read

File

core/lib/Drupal/Core/Session/WriteSafeSessionHandler.php, line 66

Class

WriteSafeSessionHandler
Wraps another SessionHandlerInterface to prevent writes when not allowed.

Namespace

Drupal\Core\Session

Code

public function read($session_id) {
  return $this->wrappedSessionHandler->read($session_id);
}
doc_Drupal
2016-10-29 09:56:49
Comments
Leave a Comment

Please login to continue.