diff --git a/public/include/config/global.inc.dist.php b/public/include/config/global.inc.dist.php index 28a2cd8c..d13632c5 100644 --- a/public/include/config/global.inc.dist.php +++ b/public/include/config/global.inc.dist.php @@ -351,8 +351,7 @@ $config['memcache']['splay'] = 15; * * You can configure the cookie behaviour to secure your cookies more than the PHP defaults * - * For multiple installations of mmcfe-ng on the same domain you must change the cookie - * path or change the cookie name to avoid conflicts. + * For multiple installations of mmcfe-ng on the same domain you must change the cookie path. * * Explanation: * duration: @@ -382,14 +381,12 @@ $config['memcache']['splay'] = 15; * duration = '1440' * domain = '' * path = '/' - * name = 'POOLERCOOKIE' * httponly = true * secure = false **/ $config['cookie']['duration'] = '1440'; $config['cookie']['domain'] = ''; $config['cookie']['path'] = '/'; -$config['cookie']['name'] = 'POOLERCOOKIE'; $config['cookie']['httponly'] = true; $config['cookie']['secure'] = false; diff --git a/public/index.php b/public/index.php index 2f51e67f..95d3427c 100644 --- a/public/index.php +++ b/public/index.php @@ -28,7 +28,7 @@ define("SECURITY", 1); if (!include_once(BASEPATH . 'include/config/global.inc.php')) die('Unable to load site configuration'); // Start a session -session_set_cookie_params($config['cookie']['duration'], $config['cookie']['path'], $config['cookie']['domain'], $config['cookie']['secure'], $config['cookie']['httponly']); +session_set_cookie_params(time()+$config['cookie']['duration'], $config['cookie']['path'], $config['cookie']['domain'], $config['cookie']['secure'], $config['cookie']['httponly']); session_start(); $session_id = session_id();