Welcome Guest, Not a member yet? Register   Sign In
Filters:after appears to be ignored
#14

(This post was last modified: 04-23-2020, 05:17 AM by Leo.)

(04-23-2020, 03:14 AM)Gary Wrote: Yeah... exit() kills everything right there... like a flu excuse on a global financial system.

How one terminates is like a box of chocolates... sometimes it works out ok, sometimes is sux.  The best place to have exit() is evidently where one knows nothing further will or can ever happen afterwards (saves a hiccup line mine when one comes to insert more code further down the execution chain, a long time after one's forgotten about the code in the preceding flow).  I suspect (without having looked into the fine details) the very last return will also end up destroying everything anyway (?).

Yes. The last return gets to the post event and sessions get destroyed. Without the exit() it gets destroyed before a redirect happens and the message is not seen, I tested this after reading your post. I've had tons of session files plague my CI3 projects, to the point where a client had to buy more space on hosting, and, though my coding improved since then, I'm just trying to keep sessions down to flash messages and short term data.
You can see things I made with codeigniter here: itart.pro its not overly impressive as I have very little time to learn.
Reply


Messages In This Thread
Filters:after appears to be ignored - by Gary - 04-20-2020, 06:33 AM
RE: Filters:after appears to be ignored - by Gary - 04-20-2020, 07:21 AM
RE: Filters:after appears to be ignored - by Gary - 04-21-2020, 03:50 AM
RE: Filters:after appears to be ignored - by Gary - 04-21-2020, 06:39 AM
RE: Filters:after appears to be ignored - by Gary - 04-21-2020, 08:48 AM
RE: Filters:after appears to be ignored - by Gary - 04-21-2020, 09:21 AM
RE: Filters:after appears to be ignored - by Gary - 04-22-2020, 04:38 AM
RE: Filters:after appears to be ignored - by Leo - 04-23-2020, 12:54 AM
RE: Filters:after appears to be ignored - by Gary - 04-23-2020, 03:14 AM
RE: Filters:after appears to be ignored - by Leo - 04-23-2020, 05:14 AM
RE: Filters:after appears to be ignored - by Gary - 04-24-2020, 09:07 AM
RE: Filters:after appears to be ignored - by Gary - 04-28-2020, 10:09 AM
RE: Filters:after appears to be ignored - by Leo - 04-29-2020, 01:07 AM
RE: Filters:after appears to be ignored - by Gary - 04-30-2020, 06:10 AM
RE: Filters:after appears to be ignored - by Leo - 04-30-2020, 12:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB