Segments issue - 2 domains, one public and other is personal

Hi,
i have a site with 2 separated domains, one is public (marketing) and the other is personal.
users need to reach the public domain and then after the login process they are being redirect to the personal domain.
i’m trying to create two separated domains:

  1. public domain ( only users that browse the public domain without login)
  2. personal domain ( users after the login)

I tried filtering that with segments using “url contains” and not contains the public and personal domains but i still get the public and the personal together in the visitor log when using the segments.
any ideas?
thanks!