Skip to content
Snippets Groups Projects
Commit 584f8844 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Comment header() in Session.php

parent a572d064
No related branches found
No related tags found
2 merge requests!419S13788_datetimepicker_selectable_weekdays,!405F10096 Fixed problem of not showing time in FE_Type 'time'. Now only time will...
Pipeline #6825 passed
......@@ -82,7 +82,8 @@ class Session
// Currently, setcookie() is only called to really extend the lifetime. All other parameter needs to be given again.
// For PHP Version < 7.3 cookie with samesite can only be set over the header() method.
if(PHP_VERSION_ID < 70300) {
header("Set-Cookie: ".SESSION_NAME."=".session_id()."; expires=".$date."; path=".$path."; domain=".$currentCookieParams['domain']."; HttpOnly; SameSite=Lax");
// header() here makes no senss, cause it's to late: T3 already sent some non header content.
// header("Set-Cookie: ".SESSION_NAME."=".session_id()."; expires=".$date."; path=".$path."; domain=".$currentCookieParams['domain']."; HttpOnly; SameSite=Lax");
} else {
setcookie(SESSION_NAME, session_id(), [
'expires' => time() + $lifetime,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment