ManojKumar
ManojKumar

Reputation: 1

flush/delete cookie not working after each request

We are getting HTML login page while hitting Site Minder service using SM Session.

We are getting cookie from httprequest by using httprequest.getcookie(). Please provide some suggestion to delete/flush cookie after each request to get a proper JSON response from site minder service.

We tried to flush out the cookie by using maxagelimit but it didn't worked.

Upvotes: 0

Views: 23

Answers (1)

Siddhesh
Siddhesh

Reputation: 1

function deleteCookie(name) {
  document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';
}

or

document.cookie =
      "name=; expires=Thu, 01 Jan 1970 00:00:00 UTC;path=/";

Upvotes: 0

Related Questions