Re: Session Vars and Performance
| From: | Greg Donald | Date: | Fri, 18 Feb 2005 13:46:50 +0000 |
| Subject: | Re: Session Vars and Performance | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-209022@lists.php.net to get a copy of this message | ||
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/