File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed
vendor/evolutioncms-services/user-manager/src/Services/Users Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 2626
2727require_once __DIR__ . '/includes/protect.inc.php ' ; // harden it
2828
29- if ((! is_cli () && session_status () === PHP_SESSION_NONE ) && (!defined ('NO_SESSION ' ))) {
29+ if ((! is_cli () && session_status () === PHP_SESSION_NONE ) &&
30+ (defined ('IN_MANAGER_MODE ' ) && IN_MANAGER_MODE || !defined ('NO_SESSION ' ))) {
3031 startCMSSession (); // start session
3132}
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ trait SafelyDestroyUserSessionTrait
2121
2222 protected function safelyDestroyUserSession ()
2323 {
24- if (defined ('NO_SESSION ' )) {
24+ if (defined ('NO_SESSION ' ) && !( defined ( ' IN_MANAGER_MODE ' ) && IN_MANAGER_MODE ) ) {
2525 return ;
2626 }
2727
Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ public function authProcess()
280280
281281 EvolutionCMS ()->cleanupExpiredLocks ();
282282 EvolutionCMS ()->cleanupMultipleActiveUsers ();
283- if (!defined ('NO_SESSION ' )) {
283+ if (( defined ( ' IN_MANAGER_MODE ' ) && IN_MANAGER_MODE ) || !defined ('NO_SESSION ' )) {
284284 $ this ->writeSession ();
285285 }
286286 // successful login so reset fail count and update key values
You can’t perform that action at this time.
0 commit comments