Constimport { stores } from '@adonisjs/session'
// File store - stores on filesystem
stores.file({ location: './tmp/sessions' })
// Redis store - stores in Redis
stores.redis({ connection: 'main' })
// Cookie store - stores in encrypted cookies
stores.cookie()
// DynamoDB store - stores in AWS DynamoDB
stores.dynamodb({ tableName: 'Sessions' })
Built-in session stores for different storage backends. Each store provides a different persistence mechanism for session data.