Welcome Guest, Not a member yet? Register   Sign In
Session lost AJAX CI 3.x
#2

This has been a long standing issue with codeigniter from what i recall, i remember having these problems in 1.7.X i believe? From what i've read previously it's down to a race condition although i'm not sure of the specifics, i've noticed it happens more often when you have regular ajax requests being made in the background, it is quite a big flaw for an application framework.

Have you tried setting the sessions so they do not expire or rotate the session ID, i've found this helps with the ajax+sessions issue although it's not really a good solution as it's not great from a security perspective to have sessions which never expire at all regardless of if the users browser is still pinging the server in the background or not.

If anyone has better info on this issue and how to work around it i would also be interested to hear of a better solution.
Reply


Messages In This Thread
Session lost AJAX CI 3.x - by tnathos - 05-09-2017, 05:21 PM
RE: Session lost AJAX CI 3.x - by webdev25 - 05-09-2017, 10:47 PM
RE: Session lost AJAX CI 3.x - by raknjak - 05-10-2017, 08:26 AM
RE: Session lost AJAX CI 3.x - by GENCODE LIMITED - 10-31-2019, 01:25 AM
RE: Session lost AJAX CI 3.x - by InsiteFX - 11-01-2019, 03:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB