Click or drag to resize
SessionHelper Class
Session management.
Inheritance Hierarchy
SystemObject
  CMS.HelpersSessionHelper

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 13.0.131
Syntax
C#
public static class SessionHelper

The SessionHelper type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberAllowSessionState
If true, the session state storage is allowed to be used.
Public propertyStatic memberSessionIsAvailable
Returns true if the session is available
Public propertyStatic memberSessionTimeout
Gets or sets the session timeout value (this value doesn't change the timeout period).
Top
Methods
  NameDescription
Public methodStatic memberAbandon
Cancels the current session.
Public methodStatic memberClear
Clears the session content starting with given string
Public methodStatic memberGetSessionID
Returns the session ID.
Public methodStatic memberGetValue
Returns the given session value.
Public methodStatic memberInitSessionTimeout
Initializes the session timeout variable
Public methodStatic memberRemove
Removes the given session item.
Public methodStatic memberSetValue(String, Boolean, Boolean)
Sets the session value.
Public methodStatic memberSetValue(String, DateTime, Boolean)
Sets the session value.
Public methodStatic memberSetValue(String, Decimal, Boolean)
Sets the session value.
Public methodStatic memberSetValue(String, Guid, Boolean)
Sets the session value.
Public methodStatic memberSetValue(String, Int32, Boolean)
Sets the session value.
Public methodStatic memberSetValue(String, Object, Boolean)
Sets the session value.
Public methodStatic memberSetValue(String, String, Boolean)
Sets the session value.
Top
See Also