Session cookies have the parameter "secure" when the connection is HTTPS
This commit is contained in:
parent
6957bc3a2f
commit
2925001dcb
9
miniflux/vendor/PicoFarad/Session.php
vendored
9
miniflux/vendor/PicoFarad/Session.php
vendored
@ -7,7 +7,14 @@ const SESSION_LIFETIME = 2678400;
|
|||||||
|
|
||||||
function open($base_path = '/')
|
function open($base_path = '/')
|
||||||
{
|
{
|
||||||
session_set_cookie_params(SESSION_LIFETIME, $base_path, null, false, true);
|
session_set_cookie_params(
|
||||||
|
SESSION_LIFETIME,
|
||||||
|
$base_path,
|
||||||
|
null,
|
||||||
|
isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on',
|
||||||
|
true
|
||||||
|
);
|
||||||
|
|
||||||
session_start();
|
session_start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user