News Feed
Sections




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

Anthony Wlodarski's Blog:
Node.js and Zend Auth with Sessions stored in the database
March 07, 2012 @ 09:50:46

Anthony Wlodarski has posted a quick example of how he shared the sessions from Zend_Auth in his Zend Framework application over with a Node.js server/application.

Recently on a project I had to make changes to a underlying portion of the sites architecture to move sessions in Zend Framework from file storage to database storage. However this affected a piece of the architecture. Node.js, which manages all our real time interaction, looked at sessions at the file level. This was quite a easy transition for the function as it was abstracted away in a function call so the theory was to just replace the function "guts" with a new component.

The post shows the code he came from (which pulled in the PHP session file and extracted the session data manually) over to a new database-based version that selects from the SESSIONS table and pulls out the data. It's based on the table having an "id" column and the Zend_Auth namespace it uses.

0 comments voice your opinion now!
nodejs zendauth sessions platform read tutorial database


blog comments powered by Disqus

Similar Posts

Klaus Graefensteiner's Blog: Climbing the CodeIgniter PHP MVC framework learning curve

Developer.com: Developing a Ajax-driven Shopping Cart with PHP and Prototype

NETTUTS.com: Easy Development With CodeIgniter

Joshua Eichorn's Blog: HTML_AJAX Wordpress Plugin Tutorial

Maurice Fonk's Blog: Smarty and the Zend Framework


Community Events





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


threedevsandamaybe symfony list voicesoftheelephpant interview conference framework zendserver language release code series deployment bugfix laravel api community podcast tips introduction

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