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
[SIZE=2][COLOR=#2a00ff][SIZE=2][COLOR=#2a00ff]
SELECT * FROM authUsers WHERE fldUsername=? AND fldPassword=?
[COLOR=black]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 ?[/COLOR]
[/COLOR][/SIZE]
[COLOR=black]and is it safe to carry around the username and password in this object, which is carried around in the Session Vars…[/COLOR]
[COLOR=#000000][/COLOR]
[COLOR=#000000]Thanks in advance [/COLOR]
[COLOR=#000000]( -Peeki :kir:
)[/COLOR]
[/COLOR][/SIZE]