I have a website with a login system. It works fine for me. When I log in the session->userdata('admin_logged_in')
gets set to true.. My co-worker is trying to log in to the site but the session isnt set. It gets set initially but when he changes pages, the sessions are cleared.
We tried adding our own sessions to the site, they got cleared when the page changed. we tried different sites and the sessions didnt save there either.
So my question is, does anyone know why his computer, an asus laptop, wouldnt allow sessions to be saved.
COOKIES ARE ENABLED :)
This is the code for how it works.
if($this->session->userdata('admin_logged_in')) {
redirect('/manager/');
}
In the manager function,
if (!$this->session->userdata('admin_logged_in')) {
redirect('/auth/');
}
It redirects for my co worker to "auth" every time. It works fine for me.
We tried
var_dump($this->session->userdata('admin_logged_in'))
and for me is said bool(true) and for him it said bool(false).