Force users to login before they use internet
Posted: Sat Apr 03, 2010 8:52 am
Hi,
I am making a project for my college for Lab maintenance. In this I have to keep track of students using the computers in the internet lab.
For this I have made a php based web application (running on localhost in the lab). In this the students will be allotted a particular system when they enter their credentials. They have to go and sit on that particular system to access the internet. Before leaving the lab they also have to logout to disengage the computer to be available for use to another student.
This can be taken as a simple register kept at the door of the entrance where people have to fill their details and enter. I AM NOT USING WINDOWS SERVER AND THIS IS NOT A DESKTOP BASED APPLICATION.
The big flaw is that the student can still sit on the internet computer without entry. Or they can sit on another computer different from the one allotted.
The sample is available: http://prakhargoel.com/projects/lms Use "0710040" as username and "hello" as password. The admin panel is available at: http://prakhargoel.com/projects/lms/labadmin Use "hello" "hello"
What is desired now
Because of this big flaw It would be gr8 that whenever someone sits on any computer and tries to open any site, they should be redirected to the login page and forced to login. Without which the internet will not work. The system number can be tracked using the ip address we put like: 192.168.1.56 etc.
The internet will work only for the time the student is logged in. When they logout the internet should again stop working.
Please suggest what should I do to make this happen.
I am making a project for my college for Lab maintenance. In this I have to keep track of students using the computers in the internet lab.
For this I have made a php based web application (running on localhost in the lab). In this the students will be allotted a particular system when they enter their credentials. They have to go and sit on that particular system to access the internet. Before leaving the lab they also have to logout to disengage the computer to be available for use to another student.
This can be taken as a simple register kept at the door of the entrance where people have to fill their details and enter. I AM NOT USING WINDOWS SERVER AND THIS IS NOT A DESKTOP BASED APPLICATION.
The big flaw is that the student can still sit on the internet computer without entry. Or they can sit on another computer different from the one allotted.
The sample is available: http://prakhargoel.com/projects/lms Use "0710040" as username and "hello" as password. The admin panel is available at: http://prakhargoel.com/projects/lms/labadmin Use "hello" "hello"
What is desired now
Because of this big flaw It would be gr8 that whenever someone sits on any computer and tries to open any site, they should be redirected to the login page and forced to login. Without which the internet will not work. The system number can be tracked using the ip address we put like: 192.168.1.56 etc.
The internet will work only for the time the student is logged in. When they logout the internet should again stop working.
Please suggest what should I do to make this happen.