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
string | sessionID |
The ID for the new session. |
DateTime? | cookieExpiry |
If null, the session expires when the client's browser is closed. |
string | cookiePath |
The HTTP URL path to which the cookie should apply. |