'Change the name of a cookie with the chrome console/extension

My goal is to change a cookies name lets say the name is:

cookienameone

i want to change the name name of this cookie to

cookienamemodified

without changing the value i need to do this via the chrome console or via an extension but i couldnt find anything about it.

I hope someone can hel me



Solution 1:[1]

You can use chrome extension "Localstorage/Sessionstorage & Cookie Manager" to update cookie names or values.

This extension provides user-friendly UI to manage localstorage, sessionstorage and cookies.

Features:

  1. Select storage type - localstorage, sessionStorage, cookies
  2. Search key/value.
  3. Sort by key/value columns.
  4. Import JSON.
  5. Download storage data as JSON.
  6. Choose path for download.
  7. View beautified JSON.
  8. Remove one pair
  9. Remove all data
  10. Reload data
  11. Add a key/value pair.
  12. Validator for import.
  13. User-friendly UI to edit value.
  14. Inline editing of key / value.

PS: I am the developer of the chrome extension and would appreciate for any improvements or feedback.

Thanks.

Solution 2:[2]

You could use the inspector > Application.

chrome inspector

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 CodeZila
Solution 2 OpblaasHaas