Ticket #881 (closed New feature: wontfix)

Opened 3 years ago

Last modified 2 years ago

.htaccess

Reported by: mt Owned by:
Priority: normal Milestone: Piwik 0.9.9 - Stable release
Component: Core Keywords:
Cc: Sensitive: no

Description

I run my server with session.auto_start at on, which causes a problem due to the way the Zend Session Object is done.

I would suggest a htaccess with the following rule:

php_flag session.auto_start off

At any rate, this .htaccess coule eventually be used for url routing purposes, for clean urls.

Change History

Changed 3 years ago by matt

we should not rely on .htaccess for application level logic; what exactly is the problem you mention? please post steps to reproduce.

Changed 3 years ago by vipsoft

I believe mt's configuration would have been an issue even before #828 because Zend_Auth depended on Zend_Session indirectly.

session.auto_start is off in a default PHP configuration.

It's specifically wrong for it to be "on" for Zend Framework apps ( http://framework.zend.com/manual/en/zend.session.advanced_usage.html) because it causes an E_NOTICE to be thrown when Zend_Session::start() is called (either directly or by Zend_Session_Namespace).

We can't guard against this programmatically, e.g.,

@ini_set('session.auto_start', 0);

because the session has already been started by the time the PHP executes.

We should document this as a system requirement rather than adding the .htaccess rule. (In fact, we should probably remove piwik/.htaccess from the build so that it doesn't overwrite the user's configuration.)

Changed 3 years ago by vipsoft

  • status changed from new to closed
  • resolution set to wontfix

opened #887 to exclude .htaccess from future builds

Changed 2 years ago by vipsoft

  • keywords htaccess removed
  • sensitive unset
Note: See TracTickets for help on using tickets.