Use session flash-data
Laravel 4.2 Session non persistent
Hi I am using laravel 4.2. After my login code, I redirect to another route for dashboard. But session is not persistent on my dashboard function
This is my code on login function
Session::put('email', $userObject->email); Session::put('firstName', $userObject->first_name); Session::put('lastName', $userObject->last_name); Session::save();
return Redirect::to('/account/dashboard');
if i try to print Session::all() right after Session::save(); I could get the values, But after redirection got nothing. Of course my storage path has the write permissions (0777) Session driver is 'file' Also tried with database, but no luck Any help is highly appreciated, stuck on this for a week almost.
Please or to participate in this conversation.