write method

  1. @override
void write(
  1. Context ctx,
  2. String session
)
override

Writes session data to cookies

Implementation

@override

/// Writes session data to cookies
void write(Context ctx, String session) {
  final cook = Cookie(cookieName, session);
  cook.path = cookiePath;
  ctx.response.cookies.add(cook);
}