clearing Cookie saved by bstatesave
clearing Cookie saved by bstatesave
How to clear cookie saved by bstateSave exactly when the user logout.I can not use iCookieDuration because i don't know when user logout.
This discussion has been closed.
How to clear cookie saved by bstateSave exactly when the user logout.I can not use iCookieDuration because i don't know when user logout.
Answers
You can clear in the API with
state.clear()
, or if you look at the page forstateSave
, you'll see it's either inlocalStorage
orsessionStorage
, so you can delete direct from there.Colin