News Feed
Sections




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

Alvaro Videla's Blog:
Erlang as Session Storage for PHP
January 19, 2010 @ 15:52:07

Alvaro Videla has a different sort of suggestion for storing the sessions for your application - use Erlang.

In the last few days I been playing with the PHP extension mypeb which allows us to connect to Erlang from PHP. As a simple example to show what we can do with this extension I will create a PHP class that will be used as the session_save_hanlder for PHP. [...] I will like to try something different by using this class to interact with an Erlang node that will act as the in memory storage for our sessions using ETS tables.

He uses the session_set_save_handler PHP function to point the application to a new location (away from the default filesystem handling) and to a custom ErlangSessionHandler object's "open" method. Also included are "close", "read" and "write" methods that let PHP talk directly to the Erlang instance. Code snippets are included.

0 comments voice your opinion now!
erlang session storage tutorial


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: Fractal: a Practical Walkthrough

NetTuts.com: An Introduction to Views & Templating in CodeIgniter

SitePoint PHP Blog: How to Use PHP Namespaces (Parts 2 &3)

SitePoint PHP Blog: Build Virtual Machines Easily with PuPHPet Part 2

SitePoint PHP Blog: Debugging with Xdebug and Sublime Text 3


Community Events





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


opinion voicesoftheelephpant series conference tool podcast security interview introduction list version release library community composer artisanfiles framework laravel symfony language

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