Removed unnecessary cookie name variable that was not used.

This commit is contained in:
Iain Kay 2013-07-11 20:30:39 +00:00
parent a635d2163c
commit 3e2608fcef
2 changed files with 2 additions and 5 deletions

View File

@ -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;

View File

@ -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();