Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: void NewSession(string, DateTime?, string)

Declaration

public void NewSession(
    string sessionID,
    DateTime? cookieExpiry,
    string cookiePath = "/"
)

Summary

Specifies that a new session should be created. (The SimpleSession.Handle(HttpRequest, Func<HttpResponse>) method adds the relevant cookie to the HTTP response.) It also sets the current SessionID to the specified ID.

Parameters

stringsessionID The ID for the new session.
DateTime?cookieExpiry If null, the session expires when the client's browser is closed.
stringcookiePath The HTTP URL path to which the cookie should apply.