Skip to content

Fix session timeout #5

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

Merged
merged 1 commit into from
Nov 3, 2012
Merged

Fix session timeout #5

merged 1 commit into from
Nov 3, 2012

Conversation

MarkRose
Copy link

@MarkRose MarkRose commented Jan 3, 2012

This commit fixes a bug where the ini file is incorrectly parsed resulting in the session ttl always being set to 0.
This leads to never expiring sessions, bloating memcached usage. This is particularly troublesome when using
CouchBase as a memcached replacement as sessions never expire, consuming all CouchBase's disk storage.

Markus Berthold found and fixed the bug. For more details, see:
http://www.couchbase.org/forums/thread/using-membase-php-session-handler

I think a new release of the 1.0 branch is warranted as the 2.0 branch has API changes (such as return null instead of false when a value isn't found).

This commit fixes a bug where the ini file is incorrectly parsed resulting in the session ttl always being set to 0.
This leads to never expiring sessions, bloating memcached usage. This is particularly troublesome when using
CouchBase as a memcached replacement as sessions never expire, consuming all CouchBase storage.

Markus Berthold found and fixed the bug. For more details, see:
http://www.couchbase.org/forums/thread/using-membase-php-session-handler
iliaal added a commit that referenced this pull request Nov 3, 2012
@iliaal iliaal merged commit 6363a14 into php-memcached-dev:REL1_0 Nov 3, 2012
@iliaal
Copy link
Member

iliaal commented Nov 3, 2012

merged, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants