-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Piwik should use Zend's session handling #828
Comments
Yet you skipped core/Config.php and plugins/Dashboard? |
my bad, forgot to add plugins/Dashboard to the patch. The comment in core/Config.php has been updated too. |
Attachment: |
Attachment: |
Instead of removing session_start(), shouldn't it be replaced with Zend_Session::start()? |
Look at libs/Zend/Session/Namespace.php, line 116 - it's called by the constructor anyway. |
Right. And Zend_Session is indirectly used by Zend_Auth... |
Ok, committing with some minor changes. |
(In [1276]) Fixes #828 - use Zend_Session / Zend_Session_Namespace |
(In [1286]) refs #828 - fix 'Trying to get property of non-object' error |
PHP 5.2.0 bug causes:
|
(In [1348]) fixes #828 - workaround ZF1743 and refactor session handling code |
I just tried to use Zend's session namespaces in a plugin, and failed. As it seems, the usage of session_start and of $_SESSION in Piwik prevents plugins from using this.
The attached patch should apply cleanly against 0.4.1, I replaced every occurance of $_SESSION with a new Zend session namespace named after the core component/plugin.
I tested the Installer plugin, should work fine.
Keywords: session handling zend
The text was updated successfully, but these errors were encountered: