You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am having an issue with deleting cookies by name. I am using helper function delete_cookie('cookie_name');
But the helper is not deleting the named cookie. Though cookie can be deleted by vanilla PHP.
I am in development mode and using localhost
CodeIgniter 4 version
CI4 Version v4.0.4
Affected module(s)
Expected behavior, and steps to reproduce if appropriate
Created a session using helper('cookie'); set_cookie([ 'name' => 'cookie_name', 'value' => $encrypter->encrypt($token['token']), 'expire' => '3600', ]);
Tried to remove it using helper('cookie'); delete_cookie('cookie_name');
Describe the bug
I am having an issue with deleting cookies by name. I am using helper function delete_cookie('cookie_name');
But the helper is not deleting the named cookie. Though cookie can be deleted by vanilla PHP.
I am in development mode and using localhost
CodeIgniter 4 version
CI4 Version v4.0.4
Affected module(s)
Expected behavior, and steps to reproduce if appropriate
Created a session using
helper('cookie'); set_cookie([ 'name' => 'cookie_name', 'value' => $encrypter->encrypt($token['token']), 'expire' => '3600', ]);
Tried to remove it using
helper('cookie'); delete_cookie('cookie_name');
My env
app.cookiePrefix = 'dev_' app.cookieDomain = '' app.cookiePath = '/' app.cookieSecure = true app.cookieHTTPOnly = false
Context
The text was updated successfully, but these errors were encountered: