Glossary Item Box
The control detects the user's authentication state and toggles the state of a link to log in or log out of a Web site. This control is liked on standard ASP.NET LoginStatus control.
The CmsLoginStatus control has two states, logged in to the Web site and logged out of the Web site, determined by the IsAuthenticated property of the Page object Request property.
The CmsLoginStatus control displays either a text or an image link, depending on the setting of the LoginImageUrl and LogoutImageUrl properties. You can display either text or images for one or both states.
When a user is not logged in to the site, the CmsLoginStatus control provides a link to the login page defined in the application configuration settings. When the user is logged in to the Web site the CmsLoginStatus control provides a link to log out of the Web site. Logging out of the Web site clears the user's authentication status and when using cookies will clear the cookie from the user's client computer. On any subsequent visit to the Web site the CmsLoginStatus control will display the prompt to log in.
![]() |
You can use this control everywhere on the site. |
Example of using CmsLoginStatus control:
<%@ Register Assembly="CMSLib" Namespace="CMSLib.Providers" TagPrefix="cmsa" %> |
| See Also |
AuthorizationForms: Authorization forms
© 2005-2007 Astron Digital Ltd. All Rights Reserved.