priyaa
priyaa

Reputation: 47

php - Laravel Auth and Session not working on Live Server

SESSION

controller: Session::flash('flash_notice', 'Registered ,Please check your Email');

In View @if (Session::has('message'))

{{ Session::get('message') }}

@endif

in my view Session data not dispalying on Live Server

Auth

Auth::check() and Auth::user() gives me false and null on Liver Server

But on localhost It is working fine.

Plz help me out here

Upvotes: 1

Views: 1722

Answers (1)

Wader
Wader

Reputation: 9883

From the sounds of it your sessions are not being set properly and are being regenerated with each request. (Check your session storage on the live server)

Ensure your session config file is correct, specifically the domain, path and secure options.

Upvotes: 0

Related Questions