I want to clear cookies when a user Sign-out from the SharePoint website.
I have written below code in the Sign Out page which resides in the Layouts folder.
deletecookie("CookieName");
function deletecookie(name) {
document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';
}
C:\Program Files\Common Files\Microsoft Shared\web server extensions\15\TEMPLATE\LAYOUTS\signout.aspx
But this approach didn't work.
Any assistance will be appreciated.