fix(session): correctly sets cookie params for sessions
Merge pull request #7587 from mrclay/sp_cleanup3

fix(session): correctly sets cookie params for sessions