Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add special case for localhost serving, do not set the cookie_domain …

…when serving out of localhost
  • Loading branch information...
commit 0ad600bcacecb7359ad920906e99dd050a2b3eaf 1 parent 39a7706
Adam Ballai authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  OpenVBX/config/config.php
2  OpenVBX/config/config.php
View
@@ -333,7 +333,7 @@
|
*/
$config['cookie_prefix'] = "";
-$config['cookie_domain'] = $_SERVER['SERVER_NAME'];
+$config['cookie_domain'] = ($_SERVER['SERVER_NAME'] == 'localhost')? '' : $_SERVER['SERVER_NAME'];
$config['cookie_path'] = str_replace('\\', '/', preg_replace('@/+$@','',dirname($_SERVER['SCRIPT_NAME'])));
if(empty($config['cookie_path']))
$config['cookie_path'] = '/';
Please sign in to comment.
Something went wrong with that request. Please try again.