That's because cookies are stored keyed on the URL of the server that set the cookie. If the same server can be reached via two different URLs, your browser can and will store two different cookies as well, which means that you will actually have two separate sessions with AniDB.