Skip to content

Commit

Permalink
use regular php session during CIVI SETUP
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin authored and ufundo committed Feb 22, 2024
1 parent c005064 commit eedb424
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CRM/Utils/System/Standalone.php
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,12 @@ public function permissionDenied() {
* Start a new session.
*/
public function sessionStart() {
$session_handler = new SessionHandler();
session_set_save_handler($session_handler);
// during installation we can't use the session handler from the extension yet
// so we fall back to a default php session
if (!defined('CIVI_SETUP')) {
$session_handler = new SessionHandler();
session_set_save_handler($session_handler);
}

$session_max_lifetime = Civi::settings()->get('standaloneusers_session_max_lifetime') ?? 1440;

Expand Down

0 comments on commit eedb424

Please sign in to comment.