Re: Session Vars and Performance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 18 Feb 2005 08:56:59 +0100, Marek Kilimajer <lists@xxxxxxxxxxxxx> 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/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux