SessionManager MembersKentico 8.0 API Reference
The SessionManager type exposes the following members.
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 SessionsInfo 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 hashtable.
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 hasthtables.
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 to the database.
Back to Top
Properties

  NameDescription
Public propertyStatic memberAuthenticatedUsers
Returns number of authenticated users or current site.
Public propertyStatic memberHiddenUsers
Returns number of hidden users.
Public propertyStatic memberOnlineUsersEnabled
Gets the value that indicates whether online users feature is enabled.
Public propertyStatic memberPublicUsers
Returns number of public users of current site.
Public propertyStatic memberStoreOnlineUsersInDatabase
Gets the value that indicates whether online users should be saved in the database.
Back to Top
See Also