modified the session stack to be sure not to start the session when false is passed