Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  OpenVBX/config/config.php
2  OpenVBX/config/config.php
@@ -333,7 +333,7 @@
333 333 |
334 334 */
335 335 $config['cookie_prefix'] = "";
336   -$config['cookie_domain'] = $_SERVER['SERVER_NAME'];
  336 +$config['cookie_domain'] = ($_SERVER['SERVER_NAME'] == 'localhost')? '' : $_SERVER['SERVER_NAME'];
337 337 $config['cookie_path'] = str_replace('\\', '/', preg_replace('@/+$@','',dirname($_SERVER['SCRIPT_NAME'])));
338 338 if(empty($config['cookie_path']))
339 339 $config['cookie_path'] = '/';

0 comments on commit 0ad600b

Please sign in to comment.
Something went wrong with that request. Please try again.