Enforce session and create a logout.