php - "The page has expired due to inactivity" - Laravel 5.5 -


my register page showing form csrftoken ({{ csrf_field() }}) present in form).

form html

<form class="form-horizontal registration-form" novalidate method="post" action="{{ route('register') }}">         {{ csrf_field() }}         .... </form> 

i using inbuilt authentication users. have not changed except routes , redirects.

when submit form (just after reloading also), gives the page has expired due inactivity. please refresh , try again. error.

my missing small thing. not sure is. help?

update

found issue. session driver set array. changed file , error gone now. wrong if use array?

may have storage_path not being writable. stores session data regarding tokens if you're using file based sessions.

as stated in comments, session driver set array. array testing only. since data not persisted, not able compare token on next request.

the array driver used during testing , prevents data stored in session being persisted.

https://laravel.com/docs/5.5/session#configuration


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -