There is a library in python browsercookie
that allows the user to get cookies stored in the browser and read their data. I am looking for a way I can edit the cookie data and then put it back in the browser files. I cant get to do this using browsercookie
. Is there any way or am I missing something here?
A cookie can be edited manually in Chrome as written here: https://thisinterestsme.com/modifying-cookies-developer-tools/
This question gives insight on how to get the data: How to get cookies from web-browser with Python?
SideNote: What I actually want is to get windows username and save it into my website's cookie so when the user opens the website after running this code it will have its username there on the website. (This is not part of the question)