I wanted to create an internet gateway server where the client connecting to my network must enter a username and password, where the server checks if username and password is correct before they can access the internet. More like AUTHENTICATION via web browser.
SETUP IS LIKE THIS:
INTERNET <--> GATEWAY SERVER <--> WIFI ROUTER <--> (CLIENTS connected)
->When not authenticated, the client will be redirected to the local server login page. When authenticated, client can access internet.
->If user deletes cookies, user will be redirected to the local server login page until authenticated again.
I don't know if it is related, but it is like this, but with client login: http://ubuntuforums.org/showthread.php?t=926001