I opened the chrome dev tool and from application Cookies, I changed the Cookie Expires / Max-Age to previous time then current time.
My question is when i change the Expires / Max-Age, its instantly reflecting and logged-out from website.
if logout functionality implemented at code level then how can we listen for cookie change and how can we achieve this functionality?
I got it from What do browsers do with expired cookies?
and from