Search squid archive

RE: timeout?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>> On 8/16/05, Corey Tyndall <CTyndall@xxxxxxxx> wrote:
>>> Is there anyway to disconnect clients from the proxy server 
>>> after a period of no activity?  Our problem is that if a user 
>>> logs into the internet via the proxy and then walks away 
>>> without shutting down the browser other users can walk up and 
>>> start browsing without being asked to log in because the 
>>> first person never logged out.  If I could disconnect the 
>>> session after say 15 minutes then the issue is no longer.  
>>> Thanks in advance
>>> 
>>> 
>>> 
>>> 
>> "Kashif Ali Bukhari" <kbukhari@xxxxxxxxx> 08/16/05 01:55AM >>>
>>use clinet life time
>> 
>> 
> -----Original Message-----
> From: Corey Tyndall [mailto:CTyndall@xxxxxxxx]
> Sent: Thursday, August 18, 2005 11:11 AM
> To: kbukhari@xxxxxxxxx
> Cc: squid-users@xxxxxxxxxxxxxxx
> Subject: Re:  timeout?
> 
> 
> Client_lifetime is used for maximum amount of time that a 
> browser can stay connected to the cache process.  I am 
> looking for a value that will disconnect the client if there 
> is no activity.  I.E.  If a user walks away and leave the 
> browser up I want it to disconnect the session after say 15 
> minutes and ask for the user to authenticate again.
> 

Using a custom authenticator with a ttl of less than 15 minutes ought to work.  Every time the authenticator is called it should check both the validity of the data and a time variable.  If it's been more than 15 minutes since the last authentication, return ERR, which should cause Squid to prompt for authentication.  If it's been less then 15 minutes, reset the time variable (to the current time) and return OK.

This idea is off the top of my head, and may (most likely does) have serious flaws.

Chris


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux