session expires automatically, ¿Why? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: session expires automatically, ¿Why? (/showthread.php?tid=52593) |
session expires automatically, ¿Why? - El Forum - 06-18-2012 [eluser]josepichu[/eluser] Hi! I have implemented a simple authentication system. It concists, In a common login page and a hook to check the session. In the case of not being logged, it redirect to de login page. The problem is that, the session expires automatically :S. here the code: hooks.php Code: $hook['post_controller_constructor'] = array( control_auth.php Code: <?php config.php Code: $config['enable_hooks'] = TRUE; session expires automatically, ¿Why? - El Forum - 06-18-2012 [eluser]josepichu[/eluser] I realized my error is the Code: $config['sess_time_to_update'] = 10; for example if i put 10seconds, after 10 seconds the application log out and redirect to the login page... ¿Why? Thanks. |