Bug #13226: Add a session_lock function
| From: | fupay at lycos dot com | Date: | Mon, 10 Sep 2001 09:52:07 +0000 |
| Subject: | Bug #13226: Add a session_lock function | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-65646@lists.php.net to get a copy of this message | ||
From: fupay@lycos.com
Operating system: Linux
PHP version: 4.0.6
PHP Bug Type: Feature/Change Request
Bug description: Add a session_lock function
Some problem occurs if I want the database can only one user can use the
database at time. For others, keep them in a query. The go one by one.
The Problem - Example:
I want to limit the registation, max 50 people.
There is a problem in checking the number of people registered, if there
are many people click the submit button at the same time.
Therefore, use session_lock()(can change the name, just example) function
the block the user, and let them the process the code one by one.
Maybe also need a session_unlock(), to unlock.
It is just like the Applicaion.lock() and Application.unlock() in ASP
--
Edit bug report at: http://bugs.php.net/?id=13226&edit=1