<--- --------------------------------------------------------------------------------------- ---- Blog Entry: Large Mistake In My Session Management Logic Author: Ben Nadel / Kinky Solutions Link: http://www.bennadel.com/index.cfm?dax=blog:249.view Date Posted: Sep 8, 2006 at 7:59 AM ---- --------------------------------------------------------------------------------------- ---> // Check user agent and session testing. if ( // We need to and this clause to force the user to // go to the ELSE clause if this is False. That will // short-circuit this IF statement and skip the rest // of the processing. We want to skip if: The session // scope has been tested AND they have the session scope. ( NOT ( COOKIE.SessionScopeTested AND COOKIE.HasSessionScope ) ) AND // Assuming we make it this far, we are dealing either // with users who have not yet been tested or do NOT // have a session scope. Either way let's try to // short-circuit this by testing for session. ( // Check to see if we have tested this user to NOT // have a session scope available. ( COOKIE.SessionScopeTested AND (NOT COOKIE.HasSessionScope) ) OR // If we made it this far, then we have to fully // test the user. (NOT Len(strTempUserAgent)) OR ... MANY OTHER CHECKS ... } else { ... LOGIC FOR SESSION-BASED USERS ... }