News Feed
Sections




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

PHPMaster.com:
Saving PHP Sessions in Redis
July 09, 2013 @ 10:53:01

On PHPMaster.com today there's a new tutorial showing you how to store your application's sessions in Redis, a key/value store known for its flexible nature and speed.

PHP's default handling of session data is probably sufficient for most applications, but sometimes a project will demand a different storage approach. Luckily, the session handling routines can be overridden either by a series of functions (in older versions of PHP) or a class with methods (in newer versions) which handle various aspects of session management. In this article we'll learn how to create a custom session handler which implements PHP's SessionHandlerInterface interface and stores the session data in a Redis database.

He talks some about the reasoning behind using something more than just the normal PHP session handling (including the flexibility it provides). He covers some of the basics of the session handling functionality and covers how the data itself is stored. Finally, he gets to the actual class - a Redis-specific handler that implements the SessionHandlerInterface interface.

0 comments voice your opinion now!
tutorial redis session storage save introduction

Link: http://phpmaster.com/saving-php-sessions-in-redis/

blog comments powered by Disqus

Similar Posts

PHPMaster.com: Getting Started with Fuel CMS, Part 1

DevShed: Using Self-Saving Objects with Command Objects in PHP 5

WebReference.com: The Building Blocks: Data Types, Literals, Variables, and Constants - Part 2

Hasin Hayder's Blog: Using new PECL Memcached extension for storing session data

NetTuts.com: Build Web Apps From Scratch With Laravel: Filters, Validations, and Files


Community Events

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


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

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