Welcome Guest, Not a member yet? Register   Sign In
Paginate Processor Load
#10

(06-29-2021, 05:12 PM)includebeer Wrote: This is interesting. In CI3 there's a call to register_shutdown_function('session_write_close'); in the session library's constructor that is no longer there in CI4. It doesn't need to be called explicitly, but only if you want to release the session lock early. So I'm pretty sure it's ok to call exit() without closing the session. It will be closed anyway.
Source: https://www.php.net/manual/en/function.s...-close.php

Yes, that is certainly useful to know... and is also good for putting one's alcohol-induced paranoia to rest... Thanks includebeer.

Some of my concern / interest / paranoia (relating to anything session) stems from a completely different problem that I'm currently battling to find a cure for (whereby the session disappears at what seems to be completely random times... sometimes a few seconds after a user signs in and other times a half-hour later, and it appears to be totally disconnected to what the user is, or isn't doing)... and it's only cropped up recently, in code that, as best I can remember, has not significantly changed from what's been working for many months.  I have another thread open on the (general) topic, but am still busy experimenting with the last suggestions made by InsiteFX and MGatner... though, from the testing I did this evening, it's starting to look like the sessions are getting lost because the session cookie is somehow being removed / emptied?!?  At any rate, that's a different problem, best left for another day and a full bottle of wine.
Reply


Messages In This Thread
Paginate Processor Load - by Gary - 05-29-2021, 05:15 AM
RE: Paginate Processor Load - by InsiteFX - 05-29-2021, 05:17 AM
RE: Paginate Processor Load - by Gary - 05-30-2021, 03:22 PM
RE: Paginate Processor Load - by includebeer - 05-29-2021, 09:01 AM
RE: Paginate Processor Load - by includebeer - 06-04-2021, 02:16 PM
RE: Paginate Processor Load - by Gary - 06-19-2021, 12:42 PM
RE: Paginate Processor Load - by includebeer - 06-19-2021, 02:19 PM
RE: Paginate Processor Load - by Gary - 06-29-2021, 03:23 PM
RE: Paginate Processor Load - by includebeer - 06-29-2021, 05:12 PM
RE: Paginate Processor Load - by Gary - 06-30-2021, 04:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB