Tweaked session checking