News Feed
Jobs Feed
Sections




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

Enrico Zimuel's Blog:
PHP session sharing using Zend Server CE and MS SQL Server
April 16, 2010 @ 12:11:39

With several articles out there about sharing session across multiple servers on databases, there seemed to be a lack of examples that used SQL Server to do it. Enrico Zimuel has helped to solve that problem with his new post on using Zend Server and SQL Server to persist the session data.

In the open source community there are many examples on how to share session data using database but i didn't found an example using MS SQL Server with the new Microsoft SQL Server Driver for PHP so I decided to write a new session handler from scratch. I used the last version 1.1 of the Microsoft SQL Server Driver. I tested the session handler using two Windows Server 2003 running IIS6 and Zend Server 5 CE. I used a SQL Server 2005 database to share the PHP session between the two servers.

He shows you how to set up the custom session handler, create the table where the session data will be stored and includes a sample test script (a part of his SQLSrv_Session class) so you can ensure that it's all cooperating as it should.

0 comments voice your opinion now!
zendserver sqlserver session sharing tutorial


blog comments powered by Disqus

Similar Posts

Dutch Web Alliance: The definitive remote debug and unittest with PHPStorm guide: part 7

Mfana Ronald Conco's Blog: RabbitMQ and PHP Part 1

GoodPHPTutorials.com: SQL Injections in PHP with MySQL

Developer Tutorials Blog: Running background processes in PHP

Abou Kone's Blog: Set up JSON action output in CakePHP 1.3


Community Events











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


install symfony2 release code language hack hhvm composer introduction component unittest security framework overview opinion package threedevsandamaybe podcast application facebook

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