appSession cookie not getting cleared out

Whenever i am trying clear application appSession Cookie from server side node js, appSession cookie get cleared out in one step and the resets to the same earlier session.

Which is making it very hard to implement logout.