ClintHeyer.Httpd
Interface ISessionManager

Manages sessions

Property Summary
bool AutoCreate
         Gets or sets whether to autocreate sessions
int GcMaxLifeTime
         Gets or sets the maximum number of secounds after which the session will be GC'd
int GcProbability
         Gets or sets the probability of GC'ing for each request
string Name
         Gets or sets the name for session

Method Summary
void Close(ClintHeyer.Httpd.HttpSession session)
         Closes a session
ClintHeyer.Httpd.HttpSession Create(ClintHeyer.Httpd.HttpRequest request, ClintHeyer.Httpd.Connection connection)
         Create a session
ClintHeyer.Httpd.HttpSession Get(ClintHeyer.Httpd.HttpRequest request, ClintHeyer.Httpd.Connection connection)
         Creates a new session for a connection (if AutoCreate is true), or gets an existing session
void Store(ClintHeyer.Httpd.HttpSession session)
         Store session - when session is no longer used


Property Detail

AutoCreate

public bool AutoCreate

Gets or sets whether to autocreate sessions


GcMaxLifeTime

public int GcMaxLifeTime

Gets or sets the maximum number of secounds after which the session will be GC'd


GcProbability

public int GcProbability

Gets or sets the probability of GC'ing for each request


Name

public string Name

Gets or sets the name for session

Method Detail

Close

public void Close(ClintHeyer.Httpd.HttpSession session)

Closes a session

Parameters:
session - Session to close

Create

public ClintHeyer.Httpd.HttpSession Create(ClintHeyer.Httpd.HttpRequest request,
                                           ClintHeyer.Httpd.Connection connection)

Create a session

Parameters:
connection - Connection
request - Request

Get

public ClintHeyer.Httpd.HttpSession Get(ClintHeyer.Httpd.HttpRequest request,
                                        ClintHeyer.Httpd.Connection connection)

Creates a new session for a connection (if AutoCreate is true), or gets an existing session

Parameters:
connection - Connection
request - Request
Returns:
Session

Store

public void Store(ClintHeyer.Httpd.HttpSession session)

Store session - when session is no longer used

Parameters:
session - Session