php - How to Set Session or Cookie Life Time in Laravel Lumen -


how set cookie/session life-time in lumen. in laravel can found in app/config/session.php since lumen uses .env file configuration, how set life time of sessions? when put value in session, session::put($key,$value) doesn't last more 3 requests, value becomes lost, due it's life-time or else?

just in case, .env file looks like:

app_env=local app_debug=true app_key=somerandomkey!!!  app_locale=en app_fallback_locale=en  db_connection=mysql db_host=localhost db_database=test db_username=root db_password=  cache_driver=cookie session_driver=cookie queue_driver=database 

you can set session_lifetime=60

more options session config can found here https://github.com/laravel/lumen-framework/blob/5.0/config/session.php


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -