| 1 |
<?php |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
namespace Symfony\Component\HttpFoundation\Session\Storage\Handler; |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
class NullSessionHandler extends AbstractSessionHandler |
| 20 |
{ |
| 21 |
public function close(): bool |
| 22 |
{ |
| 23 |
return true; |
| 24 |
} |
| 25 |
|
| 26 |
public function validateId(#[\SensitiveParameter] string $sessionId): bool |
| 27 |
{ |
| 28 |
return true; |
| 29 |
} |
| 30 |
|
| 31 |
protected function doRead(#[\SensitiveParameter] string $sessionId): string |
| 32 |
{ |
| 33 |
return ''; |
| 34 |
} |
| 35 |
|
| 36 |
public function updateTimestamp(#[\SensitiveParameter] string $sessionId, string $data): bool |
| 37 |
{ |
| 38 |
return true; |
| 39 |
} |
| 40 |
|
| 41 |
protected function doWrite(#[\SensitiveParameter] string $sessionId, string $data): bool |
| 42 |
{ |
| 43 |
return true; |
| 44 |
} |
| 45 |
|
| 46 |
protected function doDestroy(#[\SensitiveParameter] string $sessionId): bool |
| 47 |
{ |
| 48 |
return true; |
| 49 |
} |
| 50 |
|
| 51 |
public function gc(int $maxlifetime): int|false |
| 52 |
{ |
| 53 |
return 0; |
| 54 |
} |
| 55 |
} |