CodeIgniter Forums
CI 3.1.9 session timeout issue - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: CI 3.1.9 session timeout issue (/showthread.php?tid=72326)

Pages: 1 2


RE: CI 3.1.9 session timeout issue - tuhin.chowdhury08 - 12-20-2018

I am having several ajax calls. Is the ajax call making the session timeout?


RE: CI 3.1.9 session timeout issue - InsiteFX - 12-21-2018

For Ajax requests read this:

A note about concurrency


RE: CI 3.1.9 session timeout issue - dave friend - 12-21-2018

Just to eliminate it as a possible source of trouble I suggest changing $config['sess_save_path'] to a string that defines an absolute path. The function sys_get_temp_dir() isn't always consistent about what it returns and doesn't add a trailing slash.


RE: CI 3.1.9 session timeout issue - tuhin.chowdhury08 - 12-24-2018

(12-21-2018, 08:34 AM)daveĀ friend Wrote: Just to eliminate it as a possible source of trouble I suggest changing $config['sess_save_path'] to a string that defines an absolute path. The function sys_get_temp_dir() isn't always consistent about what it returns and doesn't add a trailing slash.

Will it be good to save session in database rather than as files ?


RE: CI 3.1.9 session timeout issue - dave friend - 12-24-2018

(12-24-2018, 05:53 AM)[email protected] Wrote: Will it be good to save session in database rather than as files ?

My opinion is that, overall, files are less resource intensive than using a database for session data.