Welcome Guest, Not a member yet? Register   Sign In
CI 3.1.9 session timeout issue
#11

I am having several ajax calls. Is the ajax call making the session timeout?
CI 3.x Mysql 5.x PHP 5.x
Reply
#12

For Ajax requests read this:

A note about concurrency
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#13

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.
Reply
#14

(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 ?
Reply
#15

(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.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB