Session debug

session_start() succeededyes
Session namePHPSESSID
Session idb4c4621ae24dba4108d672cb311b98b6
session.save_path/var/cpanel/php/sessions/ea-php82
session.use_cookies1
Cookie header (request)
PHPSESSID=b4c4621ae24dba4108d672cb311b98b6
session cookie params
Array
(
    [lifetime] => 0
    [path] => /
    [domain] => 
    [secure] => 
    [httponly] => 
    [samesite] => 
)
$_COOKIE
Array
(
    [PHPSESSID] => b4c4621ae24dba4108d672cb311b98b6
)
$_SESSION
Array
(
    [last_db_activity] => 1768564913
)

Quick actions

What to check (do these and paste results)

  1. Open DevTools > Application (or Storage) > Cookies. Is there a cookie named "PHPSESSID"? If yes, what is its domain/path/secure/httpOnly value?
  2. If cookie is present, does the cookie value match the Session id shown above?
  3. Click "Set test session value" then reload this page. Does $_SESSION now include the test value?
  4. If not, copy the full output of this page and paste here (especially the Cookie header, cookie params, $_COOKIE and $_SESSION).

Also try opening your application page (shipments.php) in the same browser and see if the cookie appears in request headers there.

Notes: If your site is on HTTP but session cookie has secure=true, browser will not send it. If domain is different (www vs non-www, or IP vs hostname), cookie won't be sent. If save path is invalid, sessions may not persist server-side.