Skip to content
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

Make igbinary compatibile for dbtable session handlers #4351

Open
anonymous-matomo-user opened this issue Nov 27, 2013 · 0 comments
Open

Make igbinary compatibile for dbtable session handlers #4351

anonymous-matomo-user opened this issue Nov 27, 2013 · 0 comments
Labels
Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.

Comments

@anonymous-matomo-user
Copy link

I have installed the PECL extension igbinary and set the following:

; Use igbinary as session serializer
session.serialize_handler=igbinary

Then, I set the following in Piwik's config.inc.php:

[General]
session_save_handler = dbtable

On the first page load, I would get the login screen:

[[Image(https://dl.dropboxusercontent.com/s/1rk4ka9a84sd075/1%20Login.png)]]

And the session would be in the database:

[[Image(https://dl.dropboxusercontent.com/u/84142/bug-piwik/1%20DB.png)]]

Watch what happens on a simple page refresh, no submitted data (though submitting a login yields the same):

[[Image(https://dl.dropboxusercontent.com/u/84142/bug-piwik/2%20Login.png)]]

The session is stripped from the database:

[[Image(https://dl.dropboxusercontent.com/u/84142/bug-piwik/2%20DB.png)]]

By using the default value for session.serialize_handler (commenting out any changes to it, as I had made), the Piwik DB sessions work as expected. For what it's worth, I CAN use the igbinary session serializer with the default files session handler in Piwik, but not the database.

Nothing was in my PHP error log or I would've included it.

For what it's worth, I'm using PHP 5.3.3 (default shipping with CentOS 6), PHP-FPM from RPM, igbinary installed via pecl install igbinary, using the latest Piwik 1.x.

If I can provide anymore information to help, please let me know!

@anonymous-matomo-user anonymous-matomo-user added this to the Future releases milestone Jul 8, 2014
@mattab mattab modified the milestones: Long term, Mid term Dec 23, 2015
@mattab mattab modified the milestones: Long term, Mid term Dec 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Task Indicates an issue is neither a feature nor a bug and it's purely a "technical" change.
Projects
None yet
Development

No branches or pull requests

2 participants