File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 216216 $ user = $ app ->db ->toLower ($ user );
217217
218218 if ($ loginAs ) $ oldSession = $ _SESSION ['s ' ];
219- // Session regenerate causes login problems on some systems, have to find a better way. see Issue #3827
220- //if (!$loginAs) session_regenerate_id(true);
219+
220+ // Session regenerate causes login problems on some systems, see Issue #3827
221+ // Set session_regenerate_id to no in security settings, it you encounter
222+ // this problem.
223+ $ app ->uses ('getconf ' );
224+ $ security_config = $ app ->getconf ->get_security_config ('permissions ' );
225+ if (isset ($ security_config ['session_regenerate_id ' ]) && $ security_config ['session_regenerate_id ' ] == 'yes ' ) {
226+ if (!$ loginAs ) session_regenerate_id (true );
227+ }
221228 $ _SESSION = array ();
222229 if ($ loginAs ) $ _SESSION ['s_old ' ] = $ oldSession ; // keep the way back!
223230 $ _SESSION ['s ' ]['user ' ] = $ user ;
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ admin_allow_software_packages=superadmin
1616admin_allow_software_repo =superadmin
1717remote_api_allowed =yes
1818password_reset_allowed =yes
19+ session_regenerate_id =yes
1920
2021[ids]
2122ids_enabled =no
You can’t perform that action at this time.
0 commit comments