BlogoText/blogotext

Another warning

ragnar76 opened this issue · 2 comments

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

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

hi. it works :) 👍