They easiest way to figure out what session variable names are and being used is to simply request the page that you have page restriction on and then print the session variables. In my case the the updated mysli 2 has changed this slightly. I was able to see it when I printed the session our with print_r($session);