ID: 13226
Updated by: yohgaki
Reported By: [EMAIL PROTECTED]
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] [EMAIL PROTECTED]

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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to