Page-Level Access Control for Solution Sites

The EnsureAccess and EnsureAuthAccess routines, defined in the file include\std_access_lib.asp, implement page-level access control based on the user type and access type. For information about the user type and access type, see User Tracking.

The EnsureAccess and EnsureAuthAccess routines must be called from within the Main subroutine on every page that requires access control. The call must appear before any other statement in the Main subroutine.

Both the EnsureAuthAccess and EnsureAccess routines grant access to users who are registered and authenticated (user type = AUTH_USER), and have a profile. The EnsureAccess subroutine also allows access to anonymous users based on the login option. Neither of these routines allow direct anonymous access and should not be called on any page where direct access by anonymous users is wanted.

This section contains:

See Also

About the Login Feature for Solution Sites

About the Profiles Feature for Solution Sites

Security Issues for Solution Sites

About the User Tracking Feature for Solution Sites

Copyright © 2005 Microsoft Corporation.
All rights reserved.