Multi sites issue

hello community . I have successfully installed 2 sites on same server working on 2 different ports however the issue is when I log in to the first website and then try to login to the other . the first one automatically log off . despite they are different sites and working on different ports. what could be the issue