im not sure how logins are made.... i have created a object which has a function called login, when called it uses this->username and this->password to login, which is set by the __construct... it then query's the database for
SELECT * FROM authUsers WHERE fldUsername=? AND fldPassword=?
So now im not sure what to do after this, do i create a session which carries this object in session vars, and using this->loged (boolean) within the object to check if the user is loged in on every page that requires login ?
and is it safe to carry around the username and password in this object, which is carried around in the Session Vars...
Thanks in advance
( -Peeki )