httpd logout
Coleman Brumley
coleman.brumley at comcast.net
Thu Apr 5 14:38:21 PDT 2007
Denis Vlasenko wrote:
> 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
>
>
Thanks.
That's what I ended up doing, although I split it into 3 stamps,
prevuser, previp, prevtime. This is done in checkPerms.
- Coleman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/busybox/attachments/20070405/70273d1a/attachment.htm
More information about the busybox
mailing list