Solution to session data loss when using AJAX |
[eluser]WanWizard[/eluser]
[quote author="froozle" date="1345489549"]There is a race condition with the CI session. A fix is proposed here: http://www.hiretheworld.com/blog/tech-bl...conditions It's already been submitted to CI on github as a pull request. https://github.com/EllisLab/CodeIgniter/pull/1713[/quote] Yeah, by a guy that shamelessly takes my old solution (see a few posts back) and puts it forward as his own. It's not a fix, it's a workaround, and not a very good one, as it will basically only double the session ID rotation timeout. Going for InsiteFX's solution of disabling session ID rotation on ajax calls is a much cleaner workaround, one which works pretty well. |
Welcome Guest, Not a member yet? Register Sign In |