simplified cookie/session management for php