Dart API Referencedart:ioHttpSession

HttpSession abstract class

abstract class HttpSession {
  /**
   * Get the id for the current session.
   */
  String get id;

  /**
   * Access the user-data associated with the session.
   */
  Dynamic data;

  /**
   * Destroy the session. This will terminate the session and any further
   * connections with this id will be given a new id and session.
   */
  void destroy();

  /**
   * Set a callback that will be called when the session is timed out.
   */
  void set onTimeout(void callback());
}

Properties

var data #

Access the user-data associated with the session.

Dynamic data;

final String id #

Get the id for the current session.

String get id;

void set onTimeout(void callback()) #

Set a callback that will be called when the session is timed out.

void set onTimeout(void callback());

Methods

void destroy() #

Destroy the session. This will terminate the session and any further connections with this id will be given a new id and session.

void destroy();