Posted by Greg Donald on 02/18/05 15:46
On Fri, 18 Feb 2005 08:56:59 +0100, Marek Kilimajer <lists@kilimajer.net> wrote:
> The code misses one important thing - row locking. For concurent
> requests, sess_open must block until the first request does
> sess_close(). So you need to use InnoDB's row locking or
> application-level GET_LOCK() and RELEASE_LOCK().
InnoDB wasn't available in MySQL when I put that code together. I got
the base code from:
http://php.net/manual/en/function.session-set-save-handler.php
and tweaked it to use MySQL. If you need a row level locking capable
version, have at it.
--
Greg Donald
Zend Certified Engineer
http://destiney.com/
[Back to original message]
|