Session Lost |
[eluser]Unknown[/eluser]
Hi, i have a problem with session, after 5 minutes the session is lost, why? My code check if the user is logged, if not found session, then redirect for login. My software can't lost this session after 5 minutes, because the users are waiting for incoming chat call. My Helper: islogged(); Code: if ( ! function_exists('islogged')) I call this helper in the construct of my controllers: Code: public function __construct() { The config.php Code: $config['sess_cookie_name'] = 'ci_session';
[eluser]appleboy[/eluser]
Hi, You can try native session library. https://github.com/appleboy/CodeIgniter-Native-Session
[eluser]jvicab[/eluser]
Look for this line in config.php file: $config['sess_expiration'] and increase the value (in seconds) as desired. |
Welcome Guest, Not a member yet? Register Sign In |