1 | <?php |
||
21 | class SameSiteNoneCompatSessionHandler extends StrictSessionHandler |
||
22 | { |
||
23 | /** @var \SessionHandlerInterface */ |
||
24 | private $handler; |
||
|
|||
25 | /** @var bool */ |
||
26 | private $doDestroy; |
||
27 | /** @var string */ |
||
28 | private $sessionName; |
||
29 | /** @var string|null */ |
||
30 | private $prefetchId; |
||
31 | /** @var string|null */ |
||
32 | private $prefetchData; |
||
33 | /** @var string */ |
||
34 | private $newSessionId; |
||
35 | /** @var string|null */ |
||
36 | private $igbinaryEmptyData; |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function __construct(\SessionHandlerInterface $handler) |
||
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | public function open($savePath, $sessionName) |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | protected function doRead($sessionId) |
||
71 | |||
72 | /** |
||
73 | * {@inheritdoc} |
||
74 | */ |
||
75 | public function updateTimestamp($sessionId, $data) |
||
79 | |||
80 | /** |
||
81 | * {@inheritdoc} |
||
82 | */ |
||
83 | protected function doWrite($sessionId, $data) |
||
87 | |||
88 | /** |
||
89 | * {@inheritdoc} |
||
90 | * @see https://github.com/symfony/symfony/blob/2adc85d49cbe14e346068fa7e9c2e1f08ab31de6/src/Symfony/Component/HttpFoundation/Session/Storage/Handler/AbstractSessionHandler.php#L126-L167 |
||
91 | */ |
||
92 | public function destroy($sessionId) |
||
144 | |||
145 | /** |
||
146 | * {@inheritdoc} |
||
147 | */ |
||
148 | protected function doDestroy($sessionId) |
||
154 | |||
155 | /** |
||
156 | * {@inheritdoc} |
||
157 | */ |
||
158 | public function close() |
||
162 | |||
163 | /** |
||
164 | * @return bool |
||
165 | */ |
||
166 | public function gc($maxlifetime) |
||
170 | |||
171 | /** |
||
172 | * @return string |
||
173 | */ |
||
174 | public function getCookieSameSite() |
||
182 | |||
183 | /** |
||
184 | * @return string |
||
185 | */ |
||
186 | public function getCookiePath() |
||
195 | |||
196 | /** |
||
197 | * @return string |
||
198 | */ |
||
199 | public function getCookieSecure() |
||
204 | |||
205 | /** |
||
206 | * @return bool |
||
207 | */ |
||
208 | private function shouldSendSameSiteNone() |
||
213 | } |
||
214 |