Click or drag to resize
SessionManager Class
Class provides session management.
Inheritance Hierarchy
SystemObject
  CMS.MembershipSessionManager

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 11.0.0
Syntax
C#
public static class SessionManager

The SessionManager type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberAuthenticatedUsers
Returns number of authenticated users on current site.
Public propertyStatic memberHiddenUsers
Returns number of hidden users on current site.
Public propertyStatic memberOnlineUsersEnabled
Gets the value that indicates whether online users feature is enabled.
Public propertyStatic memberPublicUsers
Returns number of public users on current site.
Public propertyStatic memberStoreOnlineUsersInDatabase
Gets the value that indicates whether online users should be saved in the database.
Top
Methods
  NameDescription
Public methodStatic memberClear
Clears all information from session management about specified site.
Public methodStatic memberGetKickedUsersWhere
Returns WHERE condition for kicked users.
Public methodStatic memberGetOnlineUsers(String, String, Int32, String, String, Boolean, Boolean)
Returns UserInfos of online users according to WHERE condition ordered by ORDER BY expression.
Public methodStatic memberGetOnlineUsers(String, String, Int32, String, String, String, Boolean, Boolean)
Returns UserInfos of online users according to WHERE condition ordered by ORDER BY expression.
Public methodStatic memberGetUsersNumber
Returns number of online users.
Public methodStatic memberGetUsersWhereCondition
Returns where condition which could be used for loading online users from database.
Public methodStatic memberIsUserOnline
Returns true if user with specified userID is online.
Public methodStatic memberKickUser
Performs the necessary actions to kick the user. User id to kick
Public methodStatic memberReindexSessionsInfosHashtable
Re-indexes sessions hashtable - changes key from old site name to new site name.
Public methodStatic memberRemoveAuthenticatedUser
Removes authenticated user from current sessions.
Public methodStatic memberRemoveContactDependencies
Removes object dependencies.
Public methodStatic memberRemoveExpiredSessions
Removes the expired sessions from the hash table.
Public methodStatic memberRemoveExpiredSessions(Boolean, Boolean)
Removes expired sessions.
Public methodStatic memberRemoveExpiredSessionsFromDB
Removes the expired sessions from the database.
Public methodStatic memberRemoveUser(Int32)
Removes user from sessions hashtables.
Public methodStatic memberRemoveUser(Int32, Boolean)
Remove user from sessions hashtables.
Public methodStatic memberRemoveUserFromKicked
Removes user from kicked. User id to kick
Public methodStatic memberUpdateCurrentSession
Updates current user session info from the context.
Public methodStatic memberUpdateDatabaseSession
Gets sessions from hashtables and updates in the database.
Top
See Also