php-express icon indicating copy to clipboard operation
php-express copied to clipboard

No clear cookies

Open ricardogj08 opened this issue 1 year ago • 2 comments

At the line 207, set $domain = isset($options['domain']) ? $options['domain'] : ""; to $domain = isset($options['domain']) ? $options['domain'] : "/"; for clear cookies correctly

ricardogj08 avatar Apr 11 '24 19:04 ricardogj08

And $path .= "; samesite=" . $sameSite; don't work, use setcookie($name, $value, $options) is more simple

ricardogj08 avatar Aug 07 '25 20:08 ricardogj08

And this form don't work:


$app->route('/invoices')
->get(function ($req, $res) {
    $res->render('invoices');
})
->post(function ($req, $res) {
    $res->json(array('status' => 'OK'));
});

ricardogj08 avatar Aug 08 '25 01:08 ricardogj08