Skip to content

Commit

Permalink
Tweaked startSession in BaseController to call session_name to set th…
Browse files Browse the repository at this point in the history
…e name of the session if a name option was specified in the session option
  • Loading branch information
rotimi committed Jul 24, 2024
1 parent af00c3b commit 6e5cd29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ protected function startSession(): void {

if(isset($session_start_settings['name'])) {

session_name($session_start_settings['name']);
session_name((string)$session_start_settings['name']);
}

session_start($session_start_settings);
Expand Down

0 comments on commit 6e5cd29

Please sign in to comment.