Problem trying to store cookie in Codeigniter 4 |
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.
|
Messages In This Thread |
Problem trying to store cookie in Codeigniter 4 - by seunex - 04-09-2020, 02:12 AM
RE: Problem trying to store cookie in Codeigniter 4 - by InsiteFX - 04-09-2020, 03:35 AM
RE: Problem trying to store cookie in Codeigniter 4 - by seunex - 04-09-2020, 04:17 AM
RE: Problem trying to store cookie in Codeigniter 4 - by Leo - 04-14-2020, 01:09 PM
RE: Problem trying to store cookie in Codeigniter 4 - by seunex - 04-14-2020, 01:41 PM
|