remove leading dot in login cookie domain

This commit is contained in:
Eric Schultz
2019-09-08 16:45:57 -05:00
parent 0b765531fe
commit 01bd18b46f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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