We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99768b5 commit ca9ac33Copy full SHA for ca9ac33
interface/lib/app.inc.php
@@ -71,6 +71,13 @@ public function __construct() {
71
$this->uses('session');
72
$sess_timeout = $this->conf('interface', 'session_timeout');
73
$cookie_domain = (isset($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : $_SERVER['HTTP_HOST']);
74
+
75
+ // Workaround for Nginx servers
76
+ if($cookie_domain == '_') {
77
+ $tmp = explode(':',$_SERVER["HTTP_HOST"]);
78
+ $cookie_domain = $tmp[0];
79
+ unset($tmp);
80
+ }
81
$cookie_secure = ($_SERVER["HTTPS"] == 'on')?true:false;
82
if($sess_timeout) {
83
/* check if user wants to stay logged in */
0 commit comments