Large Mistake In My Session Management Logic

// Check user agent.
if (
	(NOT Len(strTempUserAgent)) OR 
	 
	// We are testing the cookie values so that we are not 
	// duplicating logic. This should provide a performance 
	// increase of anyone accepting cookies.
	(
		COOKIE.SessionScopeTested AND 
		(NOT COOKIE.HasSessionScope)
	) OR
	 
	... MANY OTHER CHECKS ...
 
} else {
	 
	... LOGIC FOR SESSION-BASED USERS ...
 
}

For Cut-and-Paste