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

Jamie Cameron <[email protected]>
Newsgroups gmane.comp.web.webmin.devel
Message-ID <[email protected]>
On Thu, 2005-04-21 at 00:43, Colm Dougan wrote:
> > > > The session timeout is already enforced by Webmin for all modules, and
> > > > can be configured in the Webmin Configuration module under
> > > > Authentication. So there isn't really any need to implement your own
> > > > timeout, unless you want to do something special like adjust it on a
> > > > per-module basis ..
> > >
> > > Great - this is really useful.  Is this documented anywhere?
> > 
> > Only in my book unfortunately :-)
> > Although the default works well for most people, so it isn't often
> > changed..
> 
>  I got it working by adding "logouttime=3" to miniserv.conf.  A gotcha
> with this is that if you have any CGI scripts that reload themselves
> periodically with JavaScript then you can find that you never hit the
> timeout because the JavaScriipt reload (quite understandably) is
> activity.  Not that I'd expect webmin to deal with that - I'm just
> mentioning it.  I'll most probably have to patch webmin to have a list
> of URLs that will not count as a request for the purposes of
> calculating the timeout.

That could certainly be done - if you do create a patch for this, please
send it to me and I'll incorporate it into the next Webmin release. I'd
advise making the list of URLs not to update the timeout be
configurable, from something in miniserv.conf (which goes into the
%config hash).

 - Jamie




-------------------------------------------------------
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.