Session Drivers and Methods

Learn about session drivers and methods and see some session methods being used in code.

Session drivers

A session driver defines where session data will be stored. There are three types of session drivers in AdonisJs: cookie, file, and Redis. Cookie keeps session values in encrypted cookies, File saves session values in a file on a server, and Redis holds sessions values in Redis. By default, the cookie session driver is selected.

Get hands-on with 1200+ tech skills courses.