Creates a cookie of who logged in using javascript.

Creates a cookie when a user logs in, so we can use this cookie to know who is playing in a session.