Check Set-Cookie headers or curl -I output for Secure, HttpOnly, SameSite, Path, Domain, expiry and __Host- prefixes, with PHP and Laravel fixes. Runs in your browser.
Limitations. This reads the header text you paste. It does not request your site, cannot see cookies set by JavaScript, and cannot tell how a particular browser will treat them. Cookie values are not decoded or stored. Do not paste live session cookies from production; redact the value first.
How to use it
Run curl -I https://your-site.example (or copy Set-Cookie lines from your browser’s network panel), paste the output, then choose Check. Example loads sample Laravel and PHP cookies.
Fixes for PHP and Laravel
Plain PHP ships with session.cookie_secure and session.cookie_httponly off and session.cookie_samesite empty. Turn them on in php.ini:
Or set them at runtime. session_set_cookie_params() only lasts for the current script, so call it on every request before session_start():
<?php
// Before session_start(), on every request (PHP 7.3+ array form)
session_set_cookie_params([
'lifetime' => 0,
'path' => '/',
'secure' => true,
'httponly' => true,
'samesite' => 'Lax',
]);
session_start();
In Laravel the session cookie flags live in config/session.php. http_only defaults to true and same_site to lax, but secure comes from SESSION_SECURE_COOKIE, so set it on HTTPS:
laravel_session or your-app-session: Laravel names its cookie after APP_NAME unless SESSION_COOKIE is set. Any name ending in _session or -session is flagged.
wordpress_logged_in_[hash]: WordPress sets it after login to say who you are.
XSRF-TOKEN is not a session cookie. Laravel sends it without HttpOnly on purpose, so libraries such as Axios can copy it into the X-XSRF-TOKEN header.