$ curl -s -i http://localhost:8080/protected.php
HTTP/1.1 302 Found
Host: localhost:8080
Date: Wed, 23 Sep 2026 09:30:56 GMT
Connection: close
X-Powered-By: PHP/8.4.21
Set-Cookie: PHPSESSID=9bfd1351827d878cbcdfc2d19c575cf2; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Location: session.php
Content-type: text/html; charset=UTF-8


$ curl -s -i -c jar http://localhost:8080/session.php
HTTP/1.1 200 OK
Host: localhost:8080
Date: Wed, 23 Sep 2026 09:30:56 GMT
Connection: close
X-Powered-By: PHP/8.4.21
Set-Cookie: PHPSESSID=da3299bfacb793dc10089a180f3a8ae0; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Content-Type: text/plain; charset=utf-8

session id   : da3299bfacb793dc10089a180f3a8ae0
visits       : 1
user_id      : owner@profitina-laundry.example

$ curl -s -b jar http://localhost:8080/session.php
session id   : da3299bfacb793dc10089a180f3a8ae0
visits       : 2
user_id      : owner@profitina-laundry.example

$ curl -s -b jar http://localhost:8080/protected.php
Welcome back, owner@profitina-laundry.example

$ curl -s http://localhost:8080/session.php
session id   : e3be2cf6b729fff628f0f00654f68210
visits       : 1
user_id      : owner@profitina-laundry.example
