Cookie not working in codeigniter 4. Need helper |
04-20-2020, 03:18 PM
(This post was last modified: 04-20-2020, 03:28 PM by Leo. Edit Reason: Clarity, switched array() with [] because we live in the 21st century )
I was able to set and read a cookie just fine with your stripped code. You probably have a problem with your getConfig() function. Heres a stripped to barebones code that worked. Just build your code up until you find the problem. Try and echo out getConfig('auth_cookie_expiry') and see if you get the correct value? Also your XSS_Clean set to true looks suspicious on the get_cookie() func. switch it to false maybe?
PHP Code: public function testSetCookies() Also try this extension in chrome. It really eases process of testing cookies. http://www.editthiscookie.com/
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 |
Cookie not working in codeigniter 4. Need helper - by Chivinsdev - 04-19-2020, 08:46 AM
RE: Cookie not working in codeigniter 4. Need helper - by Leo - 04-19-2020, 02:12 PM
RE: Cookie not working in codeigniter 4. Need helper - by Chivinsdev - 04-20-2020, 01:35 PM
RE: Cookie not working in codeigniter 4. Need helper - by Leo - 04-20-2020, 03:18 PM
RE: Cookie not working in codeigniter 4. Need helper - by Chivinsdev - 04-20-2020, 03:37 PM
RE: Cookie not working in codeigniter 4. Need helper - by seunex - 04-20-2020, 10:08 PM
RE: Cookie not working in codeigniter 4. Need helper - by Leo - 04-20-2020, 10:26 PM
RE: Cookie not working in codeigniter 4. Need helper - by seunex - 04-21-2020, 01:55 AM
RE: Cookie not working in codeigniter 4. Need helper - by Leo - 04-21-2020, 05:15 AM
|