View Single Post
Old 01-12-2009, 11:04 AM   #9 (permalink)
maZtah
The Acquainted
 
Join Date: Oct 2007
Posts: 170
Thanks: 18
maZtah is an unknown quantity at this point
Default

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
maZtah is offline  
Reply With Quote