Welcome Guest, Not a member yet? Register   Sign In
[split] ajax killing sessions?
#6

(This post was last modified: 07-29-2016, 10:34 AM by spjonez.)

Yes, with that file in the location I specified you autoload 'session', CI see's MY_Session then uses that which extends the base session library and overloads the method defined in the new file. AJAX calls should not break your session unless one of them is closing it. Whats the error you're getting?

For reference our app uses both a queue for long running requests and 3+ subdomains to bypass the 2-per-domain concurrent AJAX request limit. It is normal for 5-10 concurrent requests to be running at any given time and we do not have any issues related to sessions closing.

We're moving to websockets for sanity sake but there's no reason concurrent AJAX requests should kill your session unless there's an unrelated bug somewhere. It's more likely you have a concurrency issue with database actions (deadlocks, timeouts from locks, etc).

What session driver are you using?
Reply


Messages In This Thread
[split] ajax killing sessions? - by RufusRF - 07-27-2016, 04:40 PM
RE: [split] ajax killing sessions? - by InsiteFX - 07-28-2016, 04:09 AM
RE: [split] ajax killing sessions? - by RufusRF - 07-28-2016, 08:28 AM
RE: [split] ajax killing sessions? - by spjonez - 07-29-2016, 05:41 AM
RE: [split] ajax killing sessions? - by RufusRF - 07-29-2016, 10:16 AM
RE: [split] ajax killing sessions? - by spjonez - 07-29-2016, 10:28 AM
RE: [split] ajax killing sessions? - by RufusRF - 07-30-2016, 01:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB