Hi All,
I have to deploy project to centos server and i have problem with security plugin.
In class SecurityPlugin and function beforeDispatch i have to call auth session that set from Login function like this.
Login function
$this->session->set('auth', array( 'account_no' => $userInfo['partnerAccountNo'], 'login_name' => $userInfo['firstName'], 'last_name' => $userInfo['lastName'], ));
And show that in beforeDispatch, but it can not get session
beforeDispatch function
$auth = $this->session->get('auth'); var_dump($auth);
if (!$auth){ $role = 'Guests'; } else { $role = 'Users'; }
the $auth variable show null after var_dump.
Pls help me, thanks