0

We just realized a problem that the session storage and cookies are remembered in chrome/firefox if user has selected continue where I left off.

We want to destroy session storage and session cookies as this is very critical for us. How could we do this even if user has continue where left off setting ON?

One temporary solution could be to not make it session level but expire after sometime. Any other better solution?

Sahil Sharma
  • 3,847
  • 6
  • 48
  • 98
  • Possible duplicate of [PHP - Session destroy after closing browser](https://stackoverflow.com/questions/24402047/php-session-destroy-after-closing-browser) – xrisk Dec 09 '17 at 07:23
  • You could combine onunload and [navigator.sendBeacon](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/sendBeacon) to tell your server when it should close the session. – Kaiido Dec 09 '17 at 10:07
  • Didn't get you. Could you please elaborate? – Sahil Sharma Dec 09 '17 at 12:31

0 Answers0