ThisSession extension

Session helpers attached to HttpRequest.

The guest session is identified by the archery_guest_session cookie and is loaded from the in-memory session cache when available.

Example:

final session = request.thisSession;

if (session != null) {
  print(session.token);
}
on

Properties

thisSession Session?

Available on HttpRequest, provided by the ThisSession extension

Returns the current guest session associated with the request.
no setter