Onrequestend.cfm will reset the value as soon as the page has been
processed.  It will not wait until the admin has closed the page.  

You could do as you say with the table or, you could just set a flag with an
application variable.

You'd either have to have the admin explicitly log off of that page or maybe
use the onUnload event to clear the flag.  Either way, I'd be ready to
manually clear the flag from time to time.

Marlon

> -----Original Message-----
> From: Parker, Kevin [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 29, 2004 8:57 PM
> To: CF-Talk
> Subject: Is this page open
>
> I have a backend system I've developed for a particular site. There is one
> page in the backend that I only want to allow one administrator at a
> time to open i.e. if one admin has it open then others can't open it (or
> can open it with the features visible but disabled) until that admin has
> closed it. Is such a thing possible and how might it be achieved with CF.
>
> I had thought of writing a value to a table when the page is opened
> which can be tested when other admins open the page) and then using
> onrequestend to reset it. Is this practical/advisable.
>
> TIA!!
>
>
> +++++++++++++++++++
> Kevin Parker
> Web Services Manager
> WorkCover Corporation
>
> p: 08 8233 2548
> e: [EMAIL PROTECTED]
> w: www.workcover.com
> +++++++++++++++++++
>
> ************************************************************************
> This e-mail is intended for the use of the addressee only. It may
> contain information that is protected by legislated confidentiality
> and/or is legally privileged. If you are not the intended recipient you
> are prohibited from disseminating, distributing or copying this e-mail.
>
> Any opinion expressed in this e-mail may not necessarily be that of the
> WorkCover Corporation of South Australia. Although precautions have
> been taken, the sender cannot warrant that this e-mail or any files
> transmitted with it are free of viruses or any other defect.
>
> If you have received this e-mail in error, please notify the sender
> immediately by return e-mail and destroy the original e-mail and any
> copies.
> ************************************************************************
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to