![]() |
It is not clear from the documentation how to work with Cookies and CookieStore. Can you show a detailed example with explanations?
PHP Code: $cookie = new Cookie('test_1', '12345', [ PHP Code: <?php https://codeigniter.com/user_guide/libra...okies.html Codeigniter First, Codeigniter Then You!!
yekrinaDigitals
And what's next? Cookies are not sent in response. That's the question. I have already read the guide
Oh, it is indeed hard to understand how to send cookies in this document.
I recommend you use Cookie helper.
https://codeigniter.com/user_guide/helpe...elper.html
ok, i use native setcookie(). But the question is how to use the built-in library? I see there is a CookieStore dispatch() method marked as deprecated
PHP Code: $cookie = new Cookie('key', 'value', [
I answered the question above ^. It's not critical for me to use something other than CookieStore. I was hoping that he himself should be added to the Response or otherwise.
What about the dispatch() method?
Don't use the dispatch() method. It will be removed in the future.
|
Welcome Guest, Not a member yet? Register Sign In |