Skip to content

[BUG]: Cant get all cookies #16649

@borisdelev

Description

@borisdelev

Describe the bug
I use cookies :) Soo... if i try to get them all with getCookies function- get empty array. If i retrieve cookie by name, all its fine.

To Reproduce

Steps to reproduce the behavior:

$this->cookies->set('test', 'test');
var_dump($this->cookies->get('test'); // Works
var_dump($this->cookies->getCookies()); // return empty array

Expected behavior
Array with all set cookies.
I have create a few more test and in some situation- example code from top is working. Will investigate more.
Anyway- this warning appear: Deprecated: Phalcon\Http\Cookie::setDomain(): Passing null to parameter #1 ($domain) of type string is deprecated in and i think must be fixed.

Details

  • Phalcon version: 5.8.0
  • PHP Version: 8.3.7
  • Operating System: Windows
  • Server: Apache

Metadata

Metadata

Assignees

No one assigned

    Labels

    5.0The issues we want to solve in the 5.0 releasebugA bug reportstatus: mediumMedium

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions