Permalink
Browse files

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

…when serving out of localhost
  • Loading branch information...
1 parent 39a7706 commit 0ad600bcacecb7359ad920906e99dd050a2b3eaf Adam Ballai committed Jul 5, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 OpenVBX/config/config.php
View
2 OpenVBX/config/config.php
@@ -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'] = '/';

0 comments on commit 0ad600b

Please sign in to comment.