public function 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\SessionCode
public function read($session_id) { return $this->wrappedSessionHandler->read($session_id); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Session!WriteSafeSessionHandler.php/function/WriteSafeSessionHandler::read/8.1.x