0

In chrome browser, when I close the browser JSESSIONID is not deleted, due to that application is directly getting inside without redirecting to login page.

Cookie Details from developer Tools:

enter image description here

I tried to delete the this JESSIONID cookie by the below ways

  1. delete document.cookie
  2. document.cookie=""

But values are not able to delete. Can you tell me exact method to delete the cookies in chrome.

LaPriWa
  • 1,787
  • 1
  • 12
  • 19

1 Answers1

0
document.cookie = 'JESESSIONID=; Max-Age=0;'

Because document.cookie = xxx just append or rewrite a cookie field.

acrazing
  • 1,955
  • 16
  • 24