I've got a class:
Checks session if User is logged in. If not, check client persistent user login cookie and log in.
loginUser($email, $pw, $remember = false)
Log User in, and if
$rememberis true create persistent login cookie for User and a record for it in the database.
Removes User from the session, and any User persistent login cookie from the client and corresponding record in the database.
And I figured that I should separate this class into two different classes; one that handles the session part and one for the cookie part. So I would pretty much end up with two classes with more or less the same methods, but taking care of a different responsibility.
What would be the best way to combine those together, as if I would have a single