Authentication and Access Control Routines
include\std_access_lib.asp
The following authentication-related utility routines are defined in this file:
This sub implements page-level access control. It grants access to users who have their PartnerDeskRoleFlags set to ROLE_ADMIN. All others are redirected to an error page.
- EnsureAccess
This sub implements page-level access control. It grants access to users who are either authenticated to Internet Information Services (IIS), using Basic/Integrated Windows authentication, or have tickets. Call this sub from within the Main subroutine on every page that requires such access control. A call to this sub must appear before any other statement in the Main subroutine. - EnsureAuthAccess
This function implements page-level access control. It grants access to users who are either authenticated to Internet Information Services (IIS), using Basic/Integrated Windows authentication, or have an AUTH_TICKET. Call this function from within the Main subroutine on every page that requires such access control. A call to this function must appear before any other statement in the Main subroutine. - GetAuthManagerObject
This function creates, initializes, and returns an AuthManager object. - GetUserInfo
This sub, called from the include\setupenv.asp file, assigns the user ID, user type and user access type into the following global variables: m_userid, m_UserType, and m_UserAccessType. - IsFormLoginRequired
This function determines whether login is required on the current page. It returns True if logging in is always required, or if logging in is required for a purchase and the current page is in the purchase page set. Otherwise, it returns False. - IsPersistentCookieAllowed
This function determines whether persistent cookies are enabled in the current user's browser, returning True if so, and False otherwise. A test cookie and page redirection are used to make the determination. - sGetUserIDForNewGuestUser
This function gets the user ID for a new anonymous user.
Copyright © 2005 Microsoft Corporation.
All rights reserved.