CodeIgniter Forums
problem with freakauth 1.1 and the CI session Library - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: problem with freakauth 1.1 and the CI session Library (/showthread.php?tid=8600)



problem with freakauth 1.1 and the CI session Library - El Forum - 05-23-2008

[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.


problem with freakauth 1.1 and the CI session Library - El Forum - 06-05-2008

[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



problem with freakauth 1.1 and the CI session Library - El Forum - 06-05-2008

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


problem with freakauth 1.1 and the CI session Library - El Forum - 06-06-2008

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