I use Cartalyst Sentinel to authenticate user
$status=Sentinel::authenticate($credentials);
the above code is in the login function in UserController
. In the login function I can see that the Sentinel::check()
returns some data. However, after login and redirecting the another page in the AccountController
, the Sentinel::check()
always returns false despite the user has logged in and not yet trigged the logout button.
Anyone knows how to solve this problem ?