read method

  1. @override
String? read(
  1. Context ctx
)
override

Reads the session data from cookies

Implementation

@override

/// Reads the session data from cookies
String? read(Context ctx) {
  Cookie? cook = ctx.cookies[cookieName];
  if (cook == null) {
    return null;
  }
  return cook.value;
}