Open bostonareahuman opened 2 years ago
When I run the same code, I get expires/max age:
lu2=aaaa; Domain=192.168.1.13; Path=/; Expires=Fri, 26 Feb 2027 20:55:46 GMT; Max-Age=500; HttpOnly; SameSite=Lax
What is the complete output you receive when you run that? Also, which version of PHP are you running? and what do you get if you run this?
echo (new \DateTime('+5 years'))->format('c')."\n";
For me, I see this:
2027-02-26T20:57:29+00:00
My PHP version:
PHP 8.1.3 (cli) (built: Feb 18 2022 09:32:50) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.3, Copyright (c) Zend Technologies
with Zend OPcache v8.1.3, Copyright (c), by Zend Technologies
The expires/max age for the cookie is