Skip to content

Commit

Permalink
Cookie name const refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed May 9, 2014
1 parent 80a9c06 commit 3ce2344
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/Session.php
Expand Up @@ -17,6 +17,8 @@
*/
class Session extends Zend_Session
{
const SESSION_NAME = 'PIWIK_SESSID';

protected static $sessionStarted = false;

/**
Expand Down Expand Up @@ -62,8 +64,7 @@ public static function start($options = false)
@ini_set('session.cookie_httponly', '1');

// don't use the default: PHPSESSID
$sessionName = defined('PIWIK_SESSION_NAME') ? PIWIK_SESSION_NAME : 'PIWIK_SESSID';
@ini_set('session.name', $sessionName);
@ini_set('session.name', self::SESSION_NAME);

// proxies may cause the referer check to fail and
// incorrectly invalidate the session
Expand Down

0 comments on commit 3ce2344

Please sign in to comment.