Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Session/SessionManagerInterface.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\Core\Session; | |
4 | |
5 use Symfony\Component\HttpFoundation\Session\Storage\SessionStorageInterface; | |
6 | |
7 /** | |
8 * Defines the session manager interface. | |
9 */ | |
10 interface SessionManagerInterface extends SessionStorageInterface { | |
11 | |
12 /** | |
13 * Ends a specific user's session(s). | |
14 * | |
15 * @param int $uid | |
16 * User ID. | |
17 */ | |
18 public function delete($uid); | |
19 | |
20 /** | |
21 * Destroys the current session and removes session cookies. | |
22 */ | |
23 public function destroy(); | |
24 | |
25 /** | |
26 * Sets the write safe session handler. | |
27 * | |
28 * @todo: This should be removed once all database queries are removed from | |
29 * the session manager class. | |
30 * | |
31 * @var \Drupal\Core\Session\WriteSafeSessionHandlerInterface | |
32 */ | |
33 public function setWriteSafeHandler(WriteSafeSessionHandlerInterface $handler); | |
34 | |
35 } |