Welcome Guest, Not a member yet? Register   Sign In
Session concurrency User Guide edit
#1

Not sure of the proper way to suggest a change to the User Guide, but at http://codeigniter.com/user_guide/librar...oncurrency where it says,

Quote:Locking is not the issue, it is a solution. Your issue is that you still have the session open, while you’ve already processed it and therefore no longer need it. So, what you need is to close the session for the current request after you no longer need it.
PHP Code:
$session->destroy(); 


I don't think $session->destroy(); is the right advice. I had this issue (heavy AJAX / blocked requests) and was happy to find this part of the User Guide. So I destroyed the session at the start of my request (I didn't need it) then I was logged out (of course).

So instead I'm using
PHP Code:
session_write_close(); 

Now my requests are not being blocked by the (slow loading) AJAX request.

If there's another way to suggest changes to the User Guide, please let me know and I'll follow that process.
Reply


Messages In This Thread
Session concurrency User Guide edit - by ericnagel - 09-04-2020, 08:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB