Interface ISession
- Namespace
- Dynamicweb.Environment
- Assembly
- Dynamicweb.Core.dll
Interface ISession is an abstraction of HttpSessionState. Provides access to session-state values as well as session-level settings and lifetime management methods.
Properties
this[string]
Gets or sets the session value with the specified key.
Parameters
key
stringThe key.
Property Value
- object
System.Object.
Keys
Gets the session keys.
Property Value
- Name
Object .KeysCollection Base Collection A collection of keys.
SessionID
Gets the session id.
Property Value
- string
The session id.
Methods
Abandon()
Abandons this session.
Add(string, object)
Adds a session value.
Parameters
Remove(string)
Removes the session value with the specified key.
Parameters
key
stringThe key.
RemoveAll()
Removes all session values.