AuthenticationBaseGetCallerSessionID Method Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Returns the caller's session id, and if found, updates the session expires value.

Namespace: ContentStudio.Security
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

protected virtual int GetCallerSessionID(
	ConnectionId connectionId,
	SecurityIdentifier sid
)

Parameters

connectionId
Type: ContentStudioConnectionId
A value that identifies the web site.
sid
Type: System.Security.PrincipalSecurityIdentifier
A SecurityIdentifier representing the user to get the session for.

Return Value

Type: Int32
The session identifier of the user's session if the session exists, 0 otherwise.
Remarks

Inheriting classes call this method after that the caller has been identified to test if a user's session already is valid. This will radically improve performance. If the session is valid a value greater that 999 will be returned. This identifier should be returned to the caller. If the session is invalid the session must be opened.
See Also

Reference