note 58642 deleted from function.session-set-save-handler by betz
| From: | betz@php.net | Date: | Sat, 12 Nov 2005 11:11:08 +0000 |
| Subject: | note 58642 deleted from function.session-set-save-handler by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-98472@lists.php.net to get a copy of this message | ||
Note Submitter: erwinX at darwineX dot nl
----
Database stored session with locking.
It is hard to find any working examples on the net for databasebased sessionstorage with
sessionlocking to prevent concurrent access to the same session, possibly leading to unexpected
results.
So here is my own.
It is based on M$ SQLSERVER (sorry), but I putted a databaseabstractionlayer inbetween, so you can
easily switch to your own fav database. (Mine is Postgresql)
The databaseabstractionlayer is called ADODB.
In the file you will find all relevant links and tablesetup.
(Because this is the first time I wrote such a beast, you will find some debugging-option too.
Most are just commented out.)