Set session variables as set in library/auth.inc script.