prototype of cookies to save the session