Ok, so say for simplicity I load the site and have a session id of "123". I log in -- enter my username and password, and the server stores my userid and password hash in a session file and generates a cookie that saves my session id of "123" to my local browser.
What stops somebody else from making a fake cookie that says "my session id is 123", loading the website, and being logged in as me?