Topic: Session error

Hello, I got this error:

ini_set(): A session is active. You cannot change the session module's ini settings at this time in file: /var/www/vhosts/ at line 430

What does it means?

Re: Session error

There were some changes to this file includes/ in Nov/Dec 2017 that fixed some session errors as well. Using the Git Master and appropriately adjusting the config.php based on the latest will fix the issue. Additional entries in the sys_prefs table may also be in order - compare with latest sql/en_US-new.sql.

Re: Session error

I'm getting the same message (warning?) with code version 2.4.4 (de943e150d36f815a02d4996e532a5e4e7510bc8) and PHP 7.2.3 (XAMPP 2018-03-14) with debugging on.

This message seems to be related to trying to change the ini setting after the session has started, which was being silently ignored in earlier versions of PHP but is now being reported. Refer

I propose that the ini_set be moved before the new SessionManager() [as follows]

includes/ | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/includes/ b/includes/
index 3f8c525d..779dc4e6 100644
--- a/includes/
+++ b/includes/
@@ -394,6 +394,9 @@ function login_timeout()
    if (file_exists($path_to_root.'/'.$ext['path'].'/hooks.php'))
+ini_set('session.gc_maxlifetime', 36000); // 10hrs
$Session_manager = new SessionManager();

@@ -429,7 +432,7 @@ function login_timeout()
// ini_set('session.save_path', VARLIB_PATH.'/');

-ini_set('session.gc_maxlifetime', 36000); // 10hrs
+// ini_set('session.gc_maxlifetime', 36000); // 10hrs



Re: Session error

Thanks for reporting. This will be fixed asap.

Currently there are problems committing to Sourceforge Git, but as soon as it is working again, it will be committed.