Welcome Guest, Not a member yet? Register   Sign In
Problem trying to store cookie in Codeigniter 4
#4

(This post was last modified: 04-14-2020, 01:22 PM by Leo.)

Your expire is too short. Its gotta be expire in the future. Basically time() + 86500;
It's probably too late, and you figured it out but, maybe someone else stumbles in this problem, besides you...or me.
ex: setcookie('testes_cook', 'Cooking testes??', time() + 86500, '/', '', $secure); //$secure - true if https, false if http
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
RE: Problem trying to store cookie in Codeigniter 4 - by Leo - 04-14-2020, 01:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB