It is not possible to get localStorage, sessionStorage, or cookie values ββusing javascript in a browser after they have been deleted using javascript.
If you really ask if there is another way (from outside the browser) to restore this data, another question and answer will completely depend on the particular browser and how it implements the storage of each data of these types.
For example, Firefox stores cookies as separate files. When a cookie is deleted, its cookie is deleted. This means that the cookie can no longer be accessed through the browser. But we know that from outside the browser, using system tools, sometimes the contents of deleted files can be extracted.
If you want to explore this further, you will need to find out how each browser stores each data type on each platform of interest, and then investigates whether this type of storage has any recovery strategy.
jfriend00 Apr 04 '13 at 7:03
source share