Welcome Guest, Not a member yet? Register   Sign In
problem with freakauth 1.1 and the CI session Library
#1

[eluser]shaded[/eluser]
I have a problem when running

Code:
$this->freakauth_light->check();

in any controller where i try to load the session library

Code:
$this->load->library('session');

Its seems to work fine but when i refresh the page i get logged out every time.

Can anyone help. I'm fairly new to CI so i may be misunderstanding something.
#2

[eluser]bgougent[/eluser]
I seem to have the same problem.
It could be solved by not using the session when using freakauth but the db_session
Code:
$this->db_session->set_userdata('Info', 'use db_session'); //write data
$pagedata['data'].= $this->db_session->userdata('Info'); //get data
#3

[eluser]shaded[/eluser]
Thanks for the reply. I the native sessions library from
http://codeigniter.com/wiki/Native_session/
and it works fine now.
#4

[eluser]bgougent[/eluser]
Also thanks, this is a good solutions if one does not want to modify his code a lot ...




Theme © iAndrew 2016 - Forum software by © MyBB