httpd logout

Denis Vlasenko vda.linux at googlemail.com
Thu Apr 5 14:04:50 PDT 2007


On Thursday 05 April 2007 21:02, Coleman Brumley wrote:
> Does anyone have an idea of how I could determine an httpd logout?
> 
> I'm using Basic Auth, and would like to determine when a user logs out.  
> For example, a user logs in and modifies something using a CGI page.  In 
> this case, I have "/cgi-bin:user:password" in my httpd.conf.  Is there a 
> way, our could someone recommend a way, to determine if "user" has 
> become inactive for, say, 10 seconds?  As a test, I tried using 
> SIGALARM, but in hind sight that won't work because of the forked 
> handling of connections. 

One solution can be keeping server-side timestamps: ([user,ip], last_time).
--
vda


More information about the busybox mailing list