Since HTTP driven applications are stateless, sessions provide a way to store information about the user across multiple requests. That user information is typically placed in a persistent store \/ backend that can be accessed from subsequent requests.<\/p>\n
Laravel ships with a variety of session backends that are accessed through an expressive, unified API. Support for popular backends such as Memcached<\/a>, Redis<\/a>, and databases is included.<\/p>\n Your application's session configuration file is stored at The session Configuration<\/a><\/h3>\n
config\/session.php<\/code>. Be sure to review the options available to you in this file. By default, Laravel is configured to use the database<\/code> session driver.<\/p>\ndriver<\/code> configuration option defines where session data will be stored for each request. Laravel includes a variety of drivers:<\/p>\n\n
file<\/code> - sessions are stored in storage\/framework\/sessions<\/code>.<\/li>\ncookie<\/code> - sessions are stored in secure, encrypted cookies.<\/li>\ndatabase<\/code> - sessions are stored in a relational database.<\/li>\nmemcached<\/code> \/ redis<\/code> - sessions are stored in one of these fast, cache-based stores.<\/li>\ndynamodb<\/code> - sessions are stored in AWS DynamoDB.<\/li>\narray<\/code> - sessions are stored in a PHP array and will not be persisted.<\/li>\n<\/ul>\n<\/div>\n