-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Cookie Helper and Response class issue #2783
Comments
|
Oops! Honest mistake is mine, I was looking at your |
Hard to tell with your test data, but it looks like you might be setting a per-cookie prefix and then not requesting the same prefix with |
Ok MGatner i give it a try... |
Ok i gave it a try.. it does not work,..
and my 2nd method
i also tried without myprefix no luck. |
It seems caused by the definition of |
could you try define ? 'secure' => $this->request->isSecure(), |
I have just tested using the helpers (which in turn use the current request/response) and this simple test works. I think @samsonasik is spot on here.
Are you still having problems or did his suggestion clear it up? |
This seems like resolved. |
Description
Im trying to create a cookie using response class as per the user guide.
`
`
of course data where different
try to retrieve the cookie i cant
$this->request->getCookie('Something');
Also i tried using helper. i just cant to seem to make it work..
However when i use the native php function it works like a charm
setcookie('mya', 'Some Value', time()+3600, '/');
and on a different function i just do
CodeIgniter 4 version
CI4.0.2 Appstarter build using composer
Context
The text was updated successfully, but these errors were encountered: