sure you can, they access the site via a url, they're logged in at that url (with the cookie set to that url); thus it does not forward the user to a DIFFERANT url, they stay at the same domain/subdomain the entire visit.
If they access via a differant url, then it's obvious why they wouldn't be logged in