Sign in
Log inSign up

Trying to set session in laravel 5.2, but when page is redirecting I am getting null values of session variables?

Ranjeet Kasture's photo
Ranjeet Kasture
·Dec 1, 2016

The scenerio is that I am authenticating user by ajax call, after authentication I am setting session variables, then returning true value to ajax, where in success ajax callback page is redirecting to another page where I am priting session values but nothing is set. but when I am priting session values in controller before sending it to ajax success callback there I am getting session values.