Hi. I'm totally new to php and I want to impliment the login class using session.
Assume that there are only 3 fields being user ID, password, and member's class in the Database and the three member's class are President, Vice President and citizens.
Also if the user is logging in already, the same ID should not be allowed to login from another IP address. Finally the login seesion expires in 5 minuts.
If possible, please provide a full source code or realated link. Thanks in advance.
The following are a chunk of code that I start off with.
<?
class Login
{
}
?>