I use php sessions (not cookies, except for session id cookie) for all user data, and when a user goes to their profile user.mydomain.com they are immediately \"logged out\"
Another option that worked for me: is to force the name of the session:
session_name("myWebsite"); session_start();