Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: void CleanUp(HttpResponse, bool)

  • Declared in: RT.Servers.Session
  • Virtual

Declaration

public virtual void CleanUp(
    HttpResponse response,
    bool wasModified
)

Summary

Saves/deletes the session and/or sets the session cookie, as appropriate. Only call this if you are not using Session.EnableAutomatic<TSession>(HttpRequest, Func<TSession, HttpResponse>), Session.EnableManual<TSession>(HttpRequest, Func<TSession, HttpResponse>), SessionExtensions or anything else that already calls it.

Parameters

HttpResponseresponse Response to add cookie information to.
boolwasModified Specifies whether the session data has changed.