Laravel 5.2 Session not persist after login, I have not used any middleware or default laravel auth for login. I used native php login code,it works fine on local environment but on live server it makes this problem.
0
votes
How is anyone able to help you without your code?
- Jan Willem
Do you have the StartSession middleware in the Kernel?
- todinov
Where are you trying to access the session? It won't work in the service providers.
- todinov
i am setting session using Session::put('key','value'); in logincontroller and retrieve it using sesion::all() in homecontroller. what does service provider means ,i am novice to laravel
- Milan Suthar
If you have your login credentials maintained between requests, then Session is working. Share your code where you set and pull variables.
- Mina Abadir