SessionConfig constructor

const SessionConfig({
  1. String driver = 'cookie',
  2. String? store,
  3. String cookie = 'dox_session',
  4. Duration lifetime = const Duration(hours: 2),
  5. String path = '/',
  6. String? domain,
  7. bool httpOnly = true,
  8. bool? secure,
  9. SameSite? sameSite = SameSite.lax,
})

Implementation

const SessionConfig({
  this.driver = 'cookie',
  this.store,
  this.cookie = 'dox_session',
  this.lifetime = const Duration(hours: 2),
  this.path = '/',
  this.domain,
  this.httpOnly = true,
  this.secure,
  this.sameSite = SameSite.lax,
});