mirror of
https://github.com/unraid/webgui.git
synced 2026-04-23 18:48:49 -05:00
only secure cookies when using https
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
session_set_cookie_params(0, '/', strstr($_SERVER['HTTP_HOST'].':', ':', true), true, true);
|
||||
session_set_cookie_params(0, '/', strstr($_SERVER['HTTP_HOST'].':', ':', true), array_key_exists('HTTPS', $_SERVER), true);
|
||||
session_start();
|
||||
|
||||
$docroot = $docroot ?? $_SERVER['DOCUMENT_ROOT'] ?: '/usr/local/emhttp';
|
||||
|
||||
Reference in New Issue
Block a user