Welcome Guest, Not a member yet? Register   Sign In
Session in CI 4 is not working accross the controller
#3

(08-15-2020, 10:37 AM)InsiteFX Wrote: I load it  in the BaseController.

And access it like this using the session helper:

PHP Code:
// Get session value using session helper
$user session('user');
$value session()->get('Item');
$value session('Item');

// Save session value using session helper
session()->set('user'$this->user->id);
session()->set($userData);
session()->setFlashdata('error'lang('Auth.notLoggedIn')); 
Please, show all code your BaseController . Thank you in advance for your answer
Reply


Messages In This Thread
RE: Session in CI 4 is not working accross the controller - by Avega Soft - 08-15-2020, 08:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB