-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHandler.php
More file actions
25 lines (17 loc) · 922 Bytes
/
Handler.php
File metadata and controls
25 lines (17 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
namespace Gt\Session;
use SessionHandlerInterface;
abstract class Handler implements SessionHandlerInterface {
/** @link http://php.net/manual/en/sessionhandlerinterface.close.php */
abstract public function close():bool;
/** @link http://php.net/manual/en/sessionhandlerinterface.destroy.php */
abstract public function destroy(string $id = ""):bool;
/** @link http://php.net/manual/en/sessionhandlerinterface.gc.php */
abstract public function gc(int $maxLifeTime):int|false;
/** @link http://php.net/manual/en/sessionhandlerinterface.open.php */
abstract public function open(string $savePath, string $name):bool;
/** @link http://php.net/manual/en/sessionhandlerinterface.read.php */
abstract public function read(string $sessionId):string;
/** @link http://php.net/manual/en/sessionhandlerinterface.write.php */
abstract public function write(string $sessionId, string $sessionData):bool;
}