CodeIgniter Forums
Testing Ion Auth - 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: Testing Ion Auth (/showthread.php?tid=49031)



Testing Ion Auth - El Forum - 02-06-2012

[eluser]oniadvanced[/eluser]
Hi, Guys.

I've been testing Ion Auth which looks very simple however I'm trying to test the remember me option but I'm not sure how it should work. In the config file I'm setting some values like this:

$config['remember_users'] = true;
$config['user_expire'] = 10;
$config['user_extend_on_login'] = false;

So, I'm setting the 'user_expire' to 10 seconds but nothing happend after that time, It keeps logged in, It is supposed to kill the session and send me to the login area again, right? Someone knows what I'm doing wrong?

Thanks in advance.


Testing Ion Auth - El Forum - 02-07-2012

[eluser]Ben Edmunds[/eluser]
It won't force a logout after that time, it just won't auto-login.

I definitely wouldn't recommend that short of a timeout but you can change your CI session timeout to logout a user.


Testing Ion Auth - El Forum - 02-07-2012

[eluser]oniadvanced[/eluser]
Hi, Ben.

Thanks for the reply. I'm just testing the behavior to check how It works. So How I could make It work properly? I mean I wanna be sure It won't auto-login?


Testing Ion Auth - El Forum - 02-07-2012

[eluser]Ben Edmunds[/eluser]
Just set

$config[‘remember_users’]    = false;