Your server is probally doing it because if you do not place a filename on the end of the url on some servers they may default to the default site name.
This will help you set cookies correctly as your cookies are not properly setup to be site wide
Cookies and Login Problems!!