Content Studio Web Content Management System
Assembly: CS_SiteLib (in CS_SiteLib.dll) Version: 5.7.5016.0 (5.7.5016.0)
a IUserSessionObject implementation representing the user login session
This method was added in Content Studio 5.6 Update 2
[This is preliminary documentation and is subject to change.]
Gets the session object for current HTTP request.
Namespace: ContentStudio.Site.HttpModules.UrlRewritingNet.Web
Assembly: CS_SiteLib (in CS_SiteLib.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax
public static IUserSessionObject GetSessionObjectForCurrentHttpRequest( HttpContext context, ConnectionId connectionId, SessionManager sessionManager = null, bool isInAdmin = false, bool shouldIntegrateWithForms = false, bool updateSessionCache = false )
Parameters
- context
- Type: System.WebHttpContext
The context. - connectionId
- Type: ContentStudioConnectionId
The connection identifier. - sessionManager (Optional)
- Type: ContentStudio.SecuritySessionManager
The session manager. - isInAdmin (Optional)
- Type: SystemBoolean
if the context is in Content Studio admin interface this parameter must be true; otherwise, false. - shouldIntegrateWithForms (Optional)
- Type: SystemBoolean
Set to true if the session should integrate with forms authentication. - updateSessionCache (Optional)
- Type: SystemBoolean
if set to true to have Content Studio to store the context in the session cache.
Return Value
Type: IUserSessionObjecta IUserSessionObject implementation representing the user login session
Exceptions
Exception | Condition |
---|---|
HttpException | 401;Unauthorized |
CSException | |
SqlException |
Remarks
See Also