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

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

To use the code the other user posted put the MY_Session.php file here: /application/libraries/Session/MY_Session.php and remove 'my_session' from autoload. It's an overload not a new library. That code stops AJAX requests from updating the session so if you are building a single page app all of your requests will start failing after your session expiration time has elapsed.

The core part of our app is a single page app and we have no such issues. You shouldn't need to overload the session library in that manner. Are users idling on a single page app then being logged out due to inactivity? Run a ping on a timer to keep the session alive.
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