write abstract method

FutureOr<void> write(
  1. Request request,
  2. Response response,
  3. Session session
)

Writes the session data to the underlying storage.

This method persists the session data using a storage mechanism like a cookie, file, or database. It receives the request, response, and session objects.

The request object provides context for the session. The response object allows modifying the outgoing response (e.g., setting cookies). The session object contains the data to be saved.

Returns a Future<void> that completes when the session is successfully saved.

Example:

await store.write(request, response, session);

Implementation

FutureOr<void> write(Request request, Response response, Session session);