News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Paul Reinheimer's Blog:
Storing Sessions in Memcache (how everything behaves)
July 13, 2009 @ 15:10:14

In this new post to his blog Paul Reinheimer looks at one of the more powerful tools at a PHP developer's disposal - memcache - and how you can use it to store sessions.

I've been using memcached to store session data for the past while, but we ran into a few problems at work that led me to dive in a bit deeper and see how PHP, Sessions, and memcached play along. [...] When you start up a session a new entry is created in memcache, the expiry is the same as session.gc_maxlifetime. Session data is retrieved each time a session is started (either with session_start(), or if you have session.auto_start enabled, etc).

In his "long version" he explains what's actually happening behind the scenes between PHP's session handler and the memcached server.

0 comments voice your opinion now!
memcached handler session memcache


blog comments powered by Disqus

Similar Posts

Martin Psinas' Blog: Switching to PDO

Mike Purcell's Blog: CentOS - PHP - Install Memcached (with a d) Stack

Christopher Kunz\'s Blog: Strict session handling in PHP

BillS' IIS Blog: How to install PHP on IIS7 (RC1)

Dave Marshall' Blog: Asynchronous cache priming with progress bars via Gearman, Memcache and Dojo


Community Events

Don't see your event here?
Let us know!


extension release framework conference opinion voicesoftheelephpant laravel5 api development psr7 language library series podcast unittest introduction wordpress laravel community interview

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework