Interface ISessionProxy
Represents a session proxy, i.e. an object that provides the same interface as a session object, plus a basic interface to a session manager.
Inherited Members
Namespace: EmbedIO.Sessions
Syntax
public interface ISessionProxy : ISession
Remarks
A session proxy can be used just as if it were a session object. A session is automatically created wherever its data are accessed.
Properties
Exists
Gets a value indicating whether a session exists for the current context.
Declaration
bool Exists { get; }
Property Value
Type | Description |
---|---|
Boolean | true if a session exists; otherwise, false. |
Methods
Delete()
Deletes the session for the current context.
Declaration
void Delete()
Regenerate()
Deletes the session for the current context and creates a new one.
Declaration
void Regenerate()