On Monday 05 May 2003 08.37, Sathyamoorthy G. wrote:
> Now i want to restrict 3 sessions per client is it possible if so
> kindly let me know how to do about that.
I assume you want to restrict the number of browser windows each user
runs.
This is not easily done. HTTP does not have the concept of sessions,
only individual requests. Squid has no knowledge of what the browser
does with the information (this kind of information is not available
in HTTP).
What you have in Squid which can approximate this is three controls
a) You can limit the number of concurrent connections allowed via
Squid. A single browser uses up to 4 connections (warning: in a few
buggy cases the browser uses more.. seen with Netscape Communicator
and framesets)
b) You can limit the bandwidth given to a single IP address.
c) You can (if using proxy authentication) limit how many stations
(IP addresses) the same user may be using.
Another idea:
It may be possible to implement a kind of session tracking method via
external acls and the Referer header, but this requires a bit of
programming and some database to keep track of the session data, and
probably that the cache in the browser is disabled..
Regards
Henrik
-- Donations welcome if you consider my Free Squid support helpful. https://www.paypal.com/xclick/business=hno%40squid-cache.org If you need commercial Squid support or cost effective Squid or firewall appliances please refer to MARA Systems AB, Sweden http://www.marasystems.com/, [email protected]Received on Mon May 05 2003 - 02:05:55 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:16:15 MST