Re: lock web page when editing
| From: | Andrew Brampton | Date: | Sat, 29 Sep 2001 21:39:55 +0000 |
| Subject: | Re: lock web page when editing | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-69321@lists.php.net to get a copy of this message | ||
Have a timeout?
Store in a database or something that the person has took the page out for
editing at X time... Then later when someone tried to edit the page your PHP
can check if either the page is not locked, OR 30minutes has passed since
the page was locked...
Andrew
----- Original Message -----
From: "Bob" <whyisityou2@yahoo.com>
To: <php-general@lists.php.net>
Sent: Saturday, September 29, 2001 10:28 PM
Subject: [PHP] lock web page when editing
> hi
>
> just seeing how everyone would approach this problem.
>
> i'm building a content management system and many people can edit a web
> page. if someone clicks on "edit" for a web page then i want to lock
> that page and not allow anyone else to "edit" the same page until the
> first person is done. how would i be able to tell if that first person
> is still editing or they have left??? if they close the browser then
> the web page would be locked forever. how do i get around that?
>
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>