Unfortunately there isn't really any way to implement something like
that, as it is hard to detect if a web user has 'left' a page and gone
to some totally different website, or is just sitting there looking at
it. Maybe you could write some code that uses the $session_id variable
to update a file of locks and uses timeouts to prevent locks from being
held too long ... but there is no support or standard functions for this
kind of locking built into webmin.
I did consider it at one point, but gave up because it was too hard!
- Jamie
On Wed, 2003-09-10 at 00:43, John Horne wrote:
> Hello,
>
> Second question! Is it possible to detect from within a module whether
> there are any other people using the same module on the same server?
>
> I am trying to revamp the dynbind third-party module for BIND version 9,
> and allowing for dynamic and static updates. The static bit works on
> files, which can be locked, as with BIND 8, so that is not really a
> problem. However, (a) the named.conf file could change if there is more
> than one local user using the module - the result is that the wrong
> options or zone can be displayed; (b) with dynamic zones updates can
> occur whilst a user things they are looking at the 'current' state of
> the zone. If they change a record, then it may have already changed
> whilst they were looking at it! Very awkward. Either I need to take a
> snapshot of the dynamic zone - hence my first question about files and
> logging out - or I need to determine if there are any other users using
> webmin at the same time.
>
>
> Thanks,
>
> John.
>
> --
> ---------------------------------------------------------------
> John Horne, University of Plymouth, UK Tel: +44 (0)1752 233914
> E-mail: Joh...@pl... Fax: +44 (0)1752 233839
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> -
> Forwarded by the Webmin development list at web...@we...
> To remove yourself from this list, go to
> http://lists.sourceforge.net/lists/listinfo/webadmin-devel
|