Is CI setting new cookies to expire yesterday? |
https://github.com/bcit-ci/CodeIgniter/issues/4904
(01-25-2018, 11:36 AM)pbarney Wrote: It's not ideal or obvious, but for a work around, we can add an explicit zero for the expiration time like this: Actually, that is ideal, at least as far as what you meant goes ... Because it's explicit, and I've learned the hard way - being explicit is always better. The reason why this bug could ever happen is that we have default parameter values at all. If I was designing this today, you'd be always required to explicitly specify the first 3 parameters, but this goes waaaay back in history, before I ever got involved. What's not ideal is that you don't need to use CI_Input or anything within CodeIgniter to set a cookie. Honestly, there's zero benefit to that; just use setcookie(). |
Messages In This Thread |
Is CI setting new cookies to expire yesterday? - by pbarney - 01-25-2018, 11:36 AM
RE: Is CI setting new cookies to expire yesterday? - by Narf - 01-26-2018, 08:15 PM
|