3 namespace Drupal\Core\Session;
5 use Symfony\Component\HttpFoundation\Session\Storage\SessionStorageInterface;
8 * Defines the session manager interface.
10 interface SessionManagerInterface extends SessionStorageInterface {
13 * Ends a specific user's session(s).
18 public function delete($uid);
21 * Destroys the current session and removes session cookies.
23 public function destroy();
26 * Sets the write safe session handler.
28 * @todo: This should be removed once all database queries are removed from
29 * the session manager class.
31 * @var \Drupal\Core\Session\WriteSafeSessionHandlerInterface
33 public function setWriteSafeHandler(WriteSafeSessionHandlerInterface $handler);