【发布时间】:2022-12-04 12:27:27
【问题描述】:
I am trying to have a jquery/javascript code to clear site data of chrome devtool. I found so many similar questions asked by other developers but didn\'t found any working solution so far. Here is the similar question asked, but the solution is unknown.
I am stuck in a situation where I want the site data should be cleared automatically by any way. I need to clear cookies, cache, Indexed DB, localstorage, session storage. I know localStorage.clear() and sessionStorage.clear() and these functions return undefined.
I checked this solution but it seems this not a solution.
Can anyone have any workaround to achieve this? It would be a great help for me.
Thanks!
标签: javascript jquery clear-site-data
HTTPOnly. The mentioned storage clearing methods will clear the storages, the return value of the methods isundefined, they\'re not supposed to return anything.