BlogoText / blogotext

A little more than a lightweight SQLite Blog-Engine.
Other
136 stars 30 forks source link

Another warning #377

Open ragnar76 opened 6 years ago

ragnar76 commented 6 years ago

I got this today

at login: Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in /var/www/vhosts-026/admin/inc/auth.php on line 59

after login: Warning: session_set_cookie_params(): Cannot change session cookie parameters when session is active in /var/www/002-chaosadmins.de/admin/inc/auth.php on line 66

remrem commented 6 years ago

Hello, Can you try this ? https://gist.github.com/remrem/a7406aa082c47226466a743d013ea929 I just move ini_set('session.cookie_httponly', true); and session_set_cookie_params(365 * 24 * 60 * 60); before the session start

ragnar76 commented 6 years ago

hi. it works :) 👍