CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 prevent 2 user update form at same time

Print topic Send  topic

Author Message
boolean

Posts: 62
Posted: 11/12/2010, 12:39 PM

Hello,
I have a form which have a Edit page to allows any user edit anyone else's previous content. I would like to know that if it is possible to have only ONE user to access to that Edit page at one time.

I think of keeping track who is going to the Edit page and release the blockage once the user hit the Edit button. However, I can not resolve it when he/she exits by the Back Button of the browser or close the page.

Please suggest. Thanks alot.
View profile  Send private message
Rick

Posts: 52
Posted: 11/17/2010, 9:17 AM

I think your idea sounds good. However, the tracking table would probably have to have more info in it.

One example. As you stated the person who last brought up the record may never actually save the record so you would have to timeout that user's ability to update the record and open the record back up to being opened in modify mode by the next requester.

Another thing that might be useful is once leaving a page disallow returning to it. This would take that web user out of the picture unless they started from scratch. If you search the forum, an old post shows how to keep a user from retuning to a page. I just remember that this requires some very specific coding.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.