I dont know if there is a security issue to redefine the cookie path. If not, I really want to customize it. 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 = /
In my case, I have piwik installed in http ://example/piwik and my app installed in http ://example/myapp. And my app is a simple website that check whether the current user has been logged in to Piwik or not, if yes it will display some statistics widgets, if no it will redirect the user to piwik login page.
The checking process was done by reading “piwik_auth” cookie. However, I have a problem of reading the cookie from my app since the path of the cookie, in this case, is “/piwik/”. I want to customize the path to “/” so that any page under the root domain can have the access piwik cookie.
Any idea or help? And sorry for my bad English