Need help with a User class
View Single Post
01-12-2009, 11:04 AM
Join Date: Oct 2007
Thanks guys. I'm getting more and more into OOP.
At the moment I'm wondering if it's better do do something like this:
Create a Login class and a User class. First the user logs in via the Login class. If succesfully logins, the Login class creates a User class with the id of the user f.e. like
$pUser = new User(1);
. Then the Login class puts the User class in a session.
Shouldn't this be more logically (while thinking OOP)? Or am I just lost again? :-p
View Public Profile
Send a private message to maZtah
Find More Posts by maZtah