This is probably a pretty simple question but I'm just wondering about structure of a php script. I'm writing a user login system using object oriented php. I've seen a couple of examples online where they have a simple system for users to login. My question is that some of the examples have the login section in a user class while some have it in a session class. Which one would be preferrable? I'd also like to have a guest access as well. My session information is stored in a MySQL database. Like I said the whole thing is pretty simple so I don't think I need any ready built code, plus I'd like to learn the stuff myself. Thanks in advance.
P.S. I didn't include any code since this is more of an organizational question, but if anyone wants to see what I'm going off of just let me know and I'll copy it in.