Set session and visit counter correctly for the first time.
Redirect user to login if they don't have access to the site.