Re: [webmin-devel] Session timeout with miniserv.pl

Colm Dougan <[email protected]>
Newsgroups gmane.comp.web.webmin.devel
Message-ID <[email protected]>
On 20 Apr 2005 14:01:37 +1000, Jamie Cameron <[email protected]> wrote:
> On Wed, 2005-04-20 at 11:53, Colm Dougan wrote:
> > Hi list,
> >
> > I am trying to implement a webmin module whereby there is an
> > inactivity timeout on the user session.  I can't seem to find any
> > documentation of how I do this in the docs or in the list archives but
> > I guess I must have missed this.

....

> > Perhaps this funcionality is not supported any more or something but
> > I'd appreciate any advice people can give me on how I can do this, I
> > don't mind patching miniserv,pl if that is necessary.
> 
> There is no way to access those pipes or the session database from a CGI
> script - they are internal to miniserv.pl, and used solely for
> communication between the master process and sub-processes. You could
> hack miniserv.pl to behave differently, but that would make your module
> dependent on a non-standard part of Webmin.
> 
> What change are you trying to make exactly? I may be able to suggest a
> better solution ..

Not sure exactly, I was considering having my CGI process create a
file somewhere called "${sessionid}.expired" with the timeout in it. 
Then I was going to change the piece of code I mentioned earlier in
miniserv.pl to use this in that section.   I'd love to hear any other
suggestions you have,

Having thought about it some more I think maybe I'm missing something
- is the session timeout something that already "just works" or was I
initially right in thinking that it was not a supported feature i.e.
can you clarify if there already is a standard way to use this and
maybe I can warp my thinking to that instead.

Thanks,
Colm


-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
-
Forwarded by the Webmin development list at [email protected]
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.