<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
Denis Vlasenko wrote:
<blockquote cite="mid200704052304.50720.vda.linux@googlemail.com"
type="cite">
<pre wrap="">On Thursday 05 April 2007 21:02, Coleman Brumley wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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.
</pre>
</blockquote>
<pre wrap=""><!---->
One solution can be keeping server-side timestamps: ([user,ip], last_time).
--
vda
</pre>
</blockquote>
Thanks.<br>
<br>
That's what I ended up doing, although I split it into 3 stamps,
prevuser, previp, prevtime. This is done in checkPerms. <br>
<br>
- Coleman<br>
<br>
</body>
</html>