added sessions to store cookies