note 58642 added to function.session-set-save-handler
| From: | erwinX at darwineX dot nl | Date: | Thu, 10 Nov 2005 14:21:50 +0000 |
| Subject: | note 58642 added to function.session-set-save-handler | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-98379@lists.php.net to get a copy of this message | ||
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.)
----
Manual Page -- http://www.php.net/manual/en/function.session-set-save-handler.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+58642
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58642&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58642&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58642&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58642&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58642&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58642&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58642&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+58642&report=yes
Search -- http://master.php.net/manage/user-notes.php