pass session to cookie parser