Fix cookie sessions.