mirror of
https://github.com/unraid/webgui.git
synced 2026-04-29 22:39:20 -05:00
remove leading dot in login cookie domain
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
session_name("unraid_".md5(strstr($_SERVER['HTTP_HOST'].':', ':', true)));
|
||||
session_set_cookie_params(0, '/', strstr($_SERVER['HTTP_HOST'].':', ':', true), array_key_exists('HTTPS', $_SERVER), true);
|
||||
session_set_cookie_params(0, '/', null, array_key_exists('HTTPS', $_SERVER), true);
|
||||
session_start();
|
||||
|
||||
// authorized
|
||||
|
||||
Reference in New Issue
Block a user