Bug #13226 Updated: Add a session_lock function
| From: | yohgaki@php.net | Date: | Tue, 29 Jan 2002 02:15:00 +0000 |
| Subject: | Bug #13226 Updated: Add a session_lock function | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-78402@lists.php.net to get a copy of this message | ||
ID: 13226
Updated by: yohgaki
Reported By: fupay@lycos.com
Old Status: Open
Status: Closed
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 4.0.6
New Comment:
You can do it with database that supports transaction.
Or use semaphore.
With multiple web servers, it does work well also.
Won't change.....
Previous Comments:
------------------------------------------------------------------------
[2001-09-10 05:52:07] fupay@lycos.com
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 this bug report at http://bugs.php.net/?id=13226&edit=1