Opened 4 years ago

Closed 4 years ago

#1155 closed New feature (fixed)

Define the cookie path in config.ini.php, or in global.ini.php

Reported by: vnese Owned by:
Priority: normal Milestone: Piwik 0.5.5
Component: Core Keywords:
Cc: Sensitive: no


As reported in the forum:, I am asking for a new feature that I can customize the cookie path, it can be in config.ini.php or in global.ini.php:

; login cookie name
login_cookie_name = piwik_auth

; login cookie expiration (30 days)
login_cookie_expire = 2592000

; login cookie path
login_cookie_path = /

By default, the piwik cookie is in "/piwik/" if I install it to /piwik folder. And there is no way for my app to read its cookie since the path is different (in this case my app is installed under /myapp/). It is very convenient for me to change it to "/" so that the cookie is accessible to all apps under the same domain.

Change History (3)

comment:1 Changed 4 years ago by matt (mattab)

  • Milestone set to 1 - Piwik 0.5.5

comment:2 Changed 4 years ago by vipsoft (robocoder)

Default behaviour should be the current, more restrictive behaviour, for backward compatibility and handling cases like vs

comment:3 Changed 4 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

(In [1927]) Fixes #1155 Cookie path can now be defined in config file

Note: See TracTickets for help on using tickets.