conscious-sapphire•13mo ago
Cheerio not persisting cookies
Cheerio is not able to persist cookies that are set in the session. I have
persistCookiesPerSession: true
and I also verify that the cookie is being saved in the session in the requestHandler
. But when i print out the request headers the cookie
header is not present. The session
in preNavigationHooks
also does not contain the cookies
1 Reply
exotic-emerald•13mo ago
Hello @Tay, this is caused by the fact, that these two requests probably use a different session, due to session pool picking a random session from the pool.