mirror of
https://github.com/unraid/webgui.git
synced 2026-03-04 23:29:22 -06:00
Use samesite=strict for the login session cookie
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
session_name("unraid_".md5(strstr($_SERVER['HTTP_HOST'].':', ':', true)));
|
||||
session_set_cookie_params(0, '/', null, array_key_exists('HTTPS', $_SERVER), true);
|
||||
session_set_cookie_params(0, '/; samesite=strict', null, array_key_exists('HTTPS', $_SERVER), true);
|
||||
session_start();
|
||||
|
||||
// authorized
|
||||
|
||||
Reference in New Issue
Block a user