diff options
author | Andrey Andreev <narf@devilix.net> | 2022-03-03 00:20:55 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2022-03-03 00:20:55 +0100 |
commit | 3378180483140fa9251e50843bda15a508e85e89 (patch) | |
tree | 5511462e595ccd3d40033d5c2ec01154ff2aa7eb /system/libraries/Session/PHP8SessionWrapper.php | |
parent | bb7192e43b251cb9620b35859f6283e80897c331 (diff) | |
parent | 4196eb22d7aa2f9d8325865567c2cbb82fd70960 (diff) |
Merge branch '3.1-stable' into develop
Diffstat (limited to 'system/libraries/Session/PHP8SessionWrapper.php')
-rw-r--r-- | system/libraries/Session/PHP8SessionWrapper.php | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/system/libraries/Session/PHP8SessionWrapper.php b/system/libraries/Session/PHP8SessionWrapper.php index c6dfaf7e0..41889bc61 100644 --- a/system/libraries/Session/PHP8SessionWrapper.php +++ b/system/libraries/Session/PHP8SessionWrapper.php @@ -29,7 +29,7 @@ * @package CodeIgniter * @author EllisLab Dev Team * @copyright Copyright (c) 2022, CodeIgniter Foundation (https://codeigniter.com/) - * @license http://opensource.org/licenses/MIT MIT License + * @license https://opensource.org/licenses/MIT MIT License * @link https://codeigniter.com * @since Version 3.0.0 * @filesource @@ -47,7 +47,7 @@ defined('BASEPATH') OR exit('No direct script access allowed'); * @author Andrey Andreev * @link https://codeigniter.com/userguide3/libraries/sessions.html */ -class CI_SessionWrapper implements SessionHandlerInterface { +class CI_SessionWrapper implements SessionHandlerInterface, SessionUpdateTimestampHandlerInterface { protected CI_Session_driver_interface $driver; @@ -87,4 +87,14 @@ class CI_SessionWrapper implements SessionHandlerInterface { { return $this->driver->gc($maxlifetime); } + + public function updateTimestamp(string $id, string$data): bool + { + return $this->driver->updateTimestamp($id, $data); + } + + public function validateId(string $id): bool + { + return $this->driver->validateId($id); + } } |