Newer
Older
<?php
/**
* @file
* Contains \Drupal\Core\Session\SessionManagerInterface.
*/
namespace Drupal\Core\Session;
catch
committed
use Symfony\Component\HttpFoundation\Session\Storage\SessionStorageInterface;
/**
* Defines the session manager interface.
*/
catch
committed
interface SessionManagerInterface extends SessionStorageInterface {
/**
* Ends a specific user's session(s).
*
* @param int $uid
* User ID.
*/
public function delete($uid);
/**
* Sets the write safe session handler.
*
* @todo: This should be removed once all database queries are removed from
* the session manager class.
*
* @var \Drupal\Core\Session\WriteSafeSessionHandlerInterface
*/
public function setWriteSafeHandler(WriteSafeSessionHandlerInterface $handler);