Added user session cookies

Aaaaaaaaaaah!
Authenticates a session with a cookie