Skip to content

Commit

Permalink
Make sure any precreated session cookies on the wrong path are deleted (
Browse files Browse the repository at this point in the history
matomo-org#14026)

* Make sure if session cookie path in INI config is different from path in php.ini that any precreated session cookie on the wrong path is deleted.

* Only do cookie change if not posting.

* Check against final value

* Switch to simpler approach of changed session name, since it needs to be changed anyway.
  • Loading branch information
diosmosis authored Jan 28, 2019
1 parent 0501b17 commit 315117f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/
class Session extends Zend_Session
{
const SESSION_NAME = 'PIWIK_SESSID';
const SESSION_NAME = 'MATOMO_SESSID';

public static $sessionName = self::SESSION_NAME;

Expand Down

0 comments on commit 315117f

Please sign in to comment.