I always set several vars on $\_SESSION array to control access on my sites, but I would like to know if this is a safe solution or there would be something better than:

```
($_SESSION['admin'] == 1) ? take_control_of_my_site : get_back;

```