summaryrefslogtreecommitdiffstats
path: root/system/libraries/Session/drivers/Session_files_driver.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2022-04-10 11:46:21 +0200
committerFlorian Pritz <bluewind@xinu.at>2022-04-10 11:46:21 +0200
commitb401c4e13863143b38b8848595566801fcc1527f (patch)
treec6eae5ce18f519480ead73a16029dbf3c8e993aa /system/libraries/Session/drivers/Session_files_driver.php
parent3deea564901d69109ddd6f757ccff84e6f113997 (diff)
parent45576ef6e62b5ff59da67f1697ee8c57809c7719 (diff)
Merge remote-tracking branch 'upstream/3.1-stable' into dev
Diffstat (limited to 'system/libraries/Session/drivers/Session_files_driver.php')
-rw-r--r--system/libraries/Session/drivers/Session_files_driver.php22
1 files changed, 19 insertions, 3 deletions
diff --git a/system/libraries/Session/drivers/Session_files_driver.php b/system/libraries/Session/drivers/Session_files_driver.php
index 4b7b9878b..be0dc9ede 100644
--- a/system/libraries/Session/drivers/Session_files_driver.php
+++ b/system/libraries/Session/drivers/Session_files_driver.php
@@ -35,7 +35,7 @@
* @link https://codeigniter.com
* @since Version 3.0.0
* @filesource
-*/
+ */
defined('BASEPATH') OR exit('No direct script access allowed');
/**
@@ -401,15 +401,31 @@ class CI_Session_files_driver extends CI_Session_driver implements CI_Session_dr
// --------------------------------------------------------------------
/**
+ * Update Timestamp
+ *
+ * Update session timestamp without modifying data
+ *
+ * @param string $id Session ID
+ * @param string $data Unknown & unused
+ * @return bool
+ */
+ public function updateTimestamp($id, $unknown)
+ {
+ return touch($this->_file_path.$id);
+ }
+
+ // --------------------------------------------------------------------
+
+ /**
* Validate ID
*
* Checks whether a session ID record exists server-side,
* to enforce session.use_strict_mode.
*
- * @param string $id
+ * @param string $id Session ID
* @return bool
*/
- public function validateSessionId($id)
+ public function validateId($id)
{
$result = is_file($this->_file_path.$id);
clearstatcache(TRUE, $this->_file_path.$id);