Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-05-09 05:41:28 +0400
committermattab <matthieu.aubry@gmail.com>2014-05-09 05:41:28 +0400
commit3ce2344f57fe91bf9f5b824d33129538540941fc (patch)
tree2f9ed14d4dfe00addcae6c9926afae2b820f2bc4
parent80a9c06b34d8bf8c841570040f626bc3bd43caea (diff)
Cookie name const refactor
-rw-r--r--core/Session.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/Session.php b/core/Session.php
index a8efbf4441..b2e91f7e68 100644
--- a/core/Session.php
+++ b/core/Session.php
@@ -17,6 +17,8 @@ use Zend_Session;
*/
class Session extends Zend_Session
{
+ const SESSION_NAME = 'PIWIK_SESSID';
+
protected static $sessionStarted = false;
/**
@@ -62,8 +64,7 @@ class Session extends Zend_Session
@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