php - Keeping CodeIgniter session active -
i have codeigniter app , plain php stuff on domain e.g. visit codeigniter app @ http://foo.com , plain php files @ http://foo.com/plainphp/somefile.php
i want keep ci session active when working @ somefile.php long period. kind of understand should ping ci app regularly or simpler method ping happens when refresh somefile.php manually.
my question is:
- what need include in somefile.php ci session doesn't time out??
set session preferences setting in application/config/config.php
sess_expiration :the number of seconds session last. default value 2 hours (7200 seconds). if non-expiring session set value zero: 0
see documentation of codeigniter : session settings
Comments
Post a Comment