set_cookie not working or am I missing something? |
Hello all,
https://forum.codeigniter.com/thread-73563.html => Is this an ongoing issue? I am not able to set_cookie with cookie helper and then redirect. PHP Code: private function setCookieClient($client) Calling setCookieClient function and then calling redirect function not working at all. setCookieClient is a custom Auth Lib function however running set_cookie in the controller itself does not work either. The only working solution was like the I mentioned previously. PHP Code: $this->response->setCookie(service('AuthClient')->cookieName, $authstat['client']['remember_token'], abs(strtotime($authstat['client']['remember_expires'])- time() ))->setHeader('Location', route_toFixed('dashboardClient')); Or am I missing something else here? |
Messages In This Thread |
set_cookie not working or am I missing something? - by aybarsm - 03-12-2020, 11:54 AM
RE: set_cookie not working or am I missing something? - by aybarsm - 03-13-2020, 01:48 AM
|