$ curl -s -i -c jar 'http://localhost:8080/cookies.php?action=set'
HTTP/1.1 200 OK
Host: localhost:8080
Date: Wed, 23 Sep 2026 09:30:49 GMT
Connection: close
X-Powered-By: PHP/8.4.21
Set-Cookie: hobby=swimming; expires=Wed, 23 Sep 2026 10:30:49 GMT; Max-Age=3600
Set-Cookie: last_service=S0001; expires=Wed, 23 Sep 2026 10:30:49 GMT; Max-Age=3600
Content-Type: text/plain; charset=utf-8

action = set
cookies this request arrived with:
  (none)

$ curl -s -b jar http://localhost:8080/cookies.php
action = show
cookies this request arrived with:
  last_service => S0001
  hobby => swimming

$ curl -s -i -b jar -c jar 'http://localhost:8080/cookies.php?action=delete'
HTTP/1.1 200 OK
Host: localhost:8080
Date: Wed, 23 Sep 2026 09:30:49 GMT
Connection: close
X-Powered-By: PHP/8.4.21
Set-Cookie: hobby=deleted; expires=Thu, 01 Jan 1970 00:00:01 GMT; Max-Age=0
Set-Cookie: last_service=deleted; expires=Thu, 01 Jan 1970 00:00:01 GMT; Max-Age=0
Content-Type: text/plain; charset=utf-8

action = delete
cookies this request arrived with:
  last_service => S0001
  hobby => swimming

$ curl -s -b jar http://localhost:8080/cookies.php
action = show
cookies this request arrived with:
  (none)
