Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
strictsessionhandler.php
1<?php
2
4
6{
8 private $handler;
9
10 public function __construct(NativeFileSessionHandler $handler)
11 {
12 $this->handler = $handler;
13 }
14
15 #[\ReturnTypeWillChange]
16 public function gc($maxLifeTime)
17 {
18 return $this->handler->gc($maxLifeTime);
19 }
20
21 public function open($savePath, $sessionName): bool
22 {
23 return $this->handler->open($savePath, $sessionName);
24 }
25
26 public function updateTimestamp($sessionId, $sessionData): bool
27 {
28 return $this->write($sessionId, $sessionData);
29 }
30
31 protected function processRead($sessionId): string
32 {
33 return $this->handler->read($sessionId);
34 }
35
36 protected function processWrite($sessionId, $sessionData): bool
37 {
38 return $this->handler->write($sessionId, $sessionData);
39 }
40
41 protected function lock($sessionId): bool
42 {
43 return true;
44 }
45
46 protected function unlock($sessionId): bool
47 {
48 return true;
49 }
50
51 protected function processDestroy($sessionId): bool
52 {
53 return $this->handler->destroy($sessionId);
54 }
55
56 public function close(): bool
57 {
58 return $this->handler->close();
59 }
60}