Added SECURE_ONLY option in session.inc allowing explicit switching off https only...
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 23 Jan 2022 20:36:42 +0000 (21:36 +0100)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sun, 23 Jan 2022 20:38:36 +0000 (21:38 +0100)
includes/session.inc

index a0a59d25eac4a71cafafd08f918099e28f16f603..9e559f2dd2d50bf156ad0dad3d0ca1de10d5cd84 100644 (file)
@@ -11,6 +11,7 @@
 ***********************************************************************/
 define('VARLIB_PATH', $path_to_root.'/tmp');
 define('VARLOG_PATH', $path_to_root.'/tmp');
+define('SECURE_ONLY', true);
 
 class SessionManager
 {
@@ -397,7 +398,7 @@ foreach ($installed_extensions as $ext)
 ini_set('session.gc_maxlifetime', 36000); // moved from below.
 
 $Session_manager = new SessionManager();
-$Session_manager->sessionStart('FA'.md5(dirname(__FILE__)), 0, '/', null, True);
+$Session_manager->sessionStart('FA'.md5(dirname(__FILE__)), 0, '/', null, SECURE_ONLY);
 
 $_SESSION['SysPrefs'] = new sys_prefs();