session: simplify the conditions used to prevent set-cookie #776

Closed
wants to merge 1 commit into
from