Is it possible to edit a field inside a cookie using javascript? The cookie looks like this
cookie_session=[{"id":"1526","username":"test","email":"test@test.com"}]
For example, is it possible to edit the value of the field username?
I'm trying to use
document.cookie="Field=myValue"
But when i use it, it sets the whole value of the cookie to myValue instead of a certain field within it.
Also, would it be possible to parse the value of username to use it later for a POST request?