+ Demonstrative Examples
The following code could be for a medical records application. It displays a record to already authenticated users, confirming the user's authorization using a value stored in a cookie.
(bad code)
$role = $_COOKIES['role'];