Stores session authentication in a cookie