Where is the code that depends on that session value? What is it supposed to be set to? What is it used for? That looks like the old adobe standard page restriction code, you should probably just delete it and apply the security assist page restriction server behavior instead.