CodeIgniter Forums
System kicks me off the system in Middle of the session - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: System kicks me off the system in Middle of the session (/showthread.php?tid=34869)



System kicks me off the system in Middle of the session - El Forum - 10-12-2010

[eluser]Unknown[/eluser]
Hi All,

I m facing weird problem system keeps redirecting to the default controller in middle of a session.

I have gone through the Router.php library file under system/libraries and found at some point $this->uri->uri_string returns Null OR blank hence the system is redirect to the Home page the session also does expires

I am using the session class from http://www.philsbury.co.uk/blog/code-igniter-sessions

This is SESSION Settings in config.php
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_encrypt_cookie'] = FALSE;
$config['sess_use_database'] = FALSE;
$config['sess_table_name'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = TRUE;

$config['sess_timeout'] = 0;
$config['sess_destroy_on_timeout'] = FALSE;
$config['sess_update_interval'] = 180;
$config['sess_gc_probability'] = 10;
$config['sess_http_only'] = FALSE; // PHP 5.2+ or better only!
$config['sess_forwarded_ip'] = FALSE;
$config['sess_secure'] = FALSE;


Thanks in Advance