I've seen that you can replace cookies file (C:\Users\USERNAME\AppData\Local\Google\Chrome\User Data\Default\Cookies) and change the set of logged in accounts in chrome.
I was wondering if it's possible to do it in browser using console.
So far I've tried the following approach and failed
- Go to google.com
- Log into google account
- Get
document.cookie.split(';');
from console. - Open an incognito window
- Go to google.com
- Set each value of cookie using
document.cookie = 'key=value'
- Verified the values are set by running
document.cookie.split(';');
in incognito
Am I missing a step or doing something fundamentally wrong? What's the right way to enter cookie data using console?