Stores user session into cookie