Logged on and session value comparison doesn't work
I'm trying to create a rule where the user needs to be logged on and have a specific session value of one to have access to a page. This is the rule set up:

But I have had to add lines 63 to 66 below to get it to work:

Am I missing something?