I need your ideas ppl.

I have created php webpages wherein my users have to login to that page
first before they can browse the internet.  The login is the same concept as
logging in in to a webbased email. The php script talks to mysql and
authenticates the user. If the person is successful, php grabs the
REMOTE_ADDR env variable and sends it to the squid acl file. Then I have a
cronjob which compares new acl file with an old acl file. If both file are
identical, then I won't send a reload to squid but if it is different, then
I will send a reload to squid. I have another php script which removes the
ip address of the person that logged out. Then similarly, the cronjob I
mentioned earlier will do the same thing.  My problem is, what if the user
did not log out, the ip address stays in the acl file. Although when someone
tries to access the internet using the same machine that is already in the
acl file, he will be challenged again by Squid-Mysql using realm. Kapag wala
kasi ang ip address sa acl file, the error is Cache Access is denied. You
know this squid users. :-)

How do I remove a non-active ip address in the acl file, I mean, patay ang
computer? I'm planning to do another shell program which reads the acl file,
and have it processed by cron. But I would like to hear from you, baka meron
kayong mas magandaing idea.

Thanks.

Ronneil

-
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

Reply via email to