Notice: Undefined index: HTTP_ACCEPT_LANGUAGE in /var/www/html/php7cookbook/source/chapter12/chap_12_session_protected.php on line 28
PHP 7 Cookbook

Session Protection

Welcome: guest
Username
Password
 
$_COOKIE
array(1) {
  ["PHPSESSID"]=>
  string(26) "libt95u5eagvq7rne64koao8uc"
}
$_SESSION
array(1) {
  ["token"]=>
  string(32) "2c3d6cb491c8c03ae4143106c1ac8dee"
}
Secret Info