Content Studio Web Content Management System
SystemObject
ContentStudio.SiteCodeBase
ContentStudio.Site.ActiveScriptingActiveScriptingBase
ContentStudio.Site.ActiveScriptingSecurityBase
ContentStudio.Site.ActiveScripting.SecurityLoadUserInfoCookies
Assembly: CS_SiteLib (in CS_SiteLib.dll) Version: 5.7.5016.0 (5.7.5016.0)
Top
Top
Top
LoadUserInfoCookies has no public constructor and cannot be
created, nor can it be derived from since LoadUserInfoCookies is
a sealed class.
The cookies are accessible from a cookie name CS_UserData and contains the following cookie sub keys:
The following example shows how to read the Domain cookie from
the cookie collection loaded by LoadUserInfoCookies.
[This is preliminary documentation and is subject to change.]
Identifiers the user based on the Content Studio login and sets an
in-memory cookie collection that contains useful user information. If
the cookie already exists, this class does nothing. The cookie is a
memory-based session cookie, and is destroyed when the browser is
closed and it cannot be used to pass on sensitive information.
This class is mainly intended for intranets (or similar) where all
users are authenticated. In addition to authenticated users, anonymous
users are supported.
Typically, you execute this code on the start page of a web site to
collect user information and have them easily accessibly in a in-memory
cookie.
Inheritance Hierarchy
ContentStudio.SiteCodeBase
ContentStudio.Site.ActiveScriptingActiveScriptingBase
ContentStudio.Site.ActiveScriptingSecurityBase
ContentStudio.Site.ActiveScripting.SecurityLoadUserInfoCookies
Namespace: ContentStudio.Site.ActiveScripting.Security
Assembly: CS_SiteLib (in CS_SiteLib.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax
The LoadUserInfoCookies type exposes the following members.
Properties
Name | Description | |
---|---|---|
BackwardsComponentCompatibilityMode |
Sets or gets a value that indicates whether the code runs in backwards
compatibility component mode. The default value is false.
(Inherited from ActiveScriptingBase.) | |
ComponentName | Gets the name of the component (Overrides ActiveScriptingBaseComponentName.) | |
Conformance |
Gets a value which specifies which type of code a component can generate.
(Overrides ActiveScriptingBaseConformance.) | |
ElementType |
Gets a value which specifies the type of outer element the component generates.
(Overrides ActiveScriptingBaseElementType.) | |
Encoding |
Sets or gets the encoding the component uses. The default encoding is
the UTF8 encoding without byte order mark.
(Inherited from ActiveScriptingBase.) |
Methods
Name | Description | |
---|---|---|
AccessCheckForCurrentCategory |
Determines if access us granted to the current category for
the calling user.
(Inherited from SecurityBase.) | |
AccessCheckForCurrentDocument |
Determines if access us granted to the current document for
the calling user.
(Inherited from SecurityBase.) | |
Equals | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
Invoke |
Invokes the component and loading an in-memory cookie collection
containing user information.
| |
ToString | (Inherited from Object.) |
Fields
Name | Description | |
---|---|---|
StaticComponentName | Returns the name of the component. |
Remarks
- FullName
- Domain
- UserName
- SID
- UserID
- UserKey
- LoginDate
- PreviousLogin
- Trustee
Examples
C#
string MyDomainCookieName = Page.GetCookie("CS_UserData", "Domain");
Visual Basic
Dim MyDomainCookieName As String = Page.GetCookie("CS_UserData", "Domain")
See Also