saving the session to a cookie so we can keep the user logged in easily