Skip to content

Commit 972a32b

Browse files
committed
refactor: Remove Session deprecation
1 parent 76bea16 commit 972a32b

File tree

7 files changed

+26
-315
lines changed

7 files changed

+26
-315
lines changed

app/Config/Session.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class Session extends BaseConfig
1414
* --------------------------------------------------------------------------
1515
*
1616
* The session storage driver to use:
17+
* - `CodeIgniter\Session\Handlers\ArrayHandler` (for testing)
1718
* - `CodeIgniter\Session\Handlers\FileHandler`
1819
* - `CodeIgniter\Session\Handlers\DatabaseHandler`
1920
* - `CodeIgniter\Session\Handlers\MemcachedHandler`

system/Language/en/Session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
// Session language settings
1515
return [
16-
'missingDatabaseTable' => '"sessionSavePath" must have the table name for the Database Session Handler to work.',
16+
'missingDatabaseTable' => 'Session: "savePath" must have the table name for the Database Session Handler to work.',
1717
'invalidSavePath' => 'Session: Configured save path "{0}" is not a directory, does not exist or cannot be created.',
1818
'writeProtectedSavePath' => 'Session: Configured save path "{0}" is not writable by the PHP process.',
1919
'emptySavePath' => 'Session: No save path configured.',

system/Session/Handlers/DatabaseHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function __construct(SessionConfig $config, string $ipAddress)
7676

7777
// Store Session configurations
7878
$this->DBGroup = $config->DBGroup ?? config(Database::class)->defaultGroup;
79-
// Add sessionCookieName for multiple session cookies.
79+
// Add session cookie name for multiple session cookies.
8080
$this->idPrefix = $config->cookieName . ':';
8181

8282
$this->table = $this->savePath;

system/Session/Handlers/MemcachedHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function __construct(SessionConfig $config, string $ipAddress)
6565
throw SessionException::forEmptySavepath();
6666
}
6767

68-
// Add sessionCookieName for multiple session cookies.
68+
// Add session cookie name for multiple session cookies.
6969
$this->keyPrefix .= $config->cookieName . ':';
7070

7171
if ($this->matchIP === true) {

system/Session/Handlers/RedisHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function __construct(SessionConfig $config, string $ipAddress)
8787
? (int) ini_get('session.gc_maxlifetime')
8888
: $config->expiration;
8989

90-
// Add sessionCookieName for multiple session cookies.
90+
// Add session cookie name for multiple session cookies.
9191
$this->keyPrefix .= $config->cookieName . ':';
9292

9393
$this->setSavePath();

0 commit comments

Comments
 (0)