I want to save the cookies of a website after logging into my account because I need to maintain the login session using cookies.
I’m using PuppeteerGetCookies
to retrieve the cookies and FileWrite
to save them to a file. Next time, I plan to use FileRead
to read the cookie file and PuppeteerSetCookies
to set the cookies.
However, PuppeteerSetCookies
reports that the cookie format is invalid.