Updated session validation for app sessions and pages