How to delete a cookie and server variable using USP code
Author: firstname.lastname@example.org (jasonzuvela)
Can someone please provide some example USP code that shows how to delete a cookie and server variable?
I've tried the following but it doesn't seem to work (though I'm not sure since I don't have the tools to read cookies available right now):
;All local variables are strings
;TV_COOKIESOUT already contains a valid cookie from existing code
;Cookie to delete is JSESSIONID
;Server variable to delete is REMOTE_USER
TV_COOKIESOUT = "%%TV_COOKIESOUT%%%·;JSESSIONID=·!·;%%TV_PATH%%%"
$webinfo("cookiesout") = TV_COOKIESOUT
putitem/id TV_SERVERVARIABLES, "REMOTE_USER", ""
putitem/id $webinfo("WEBSERVERCONTEXT"), "SERVERVARIABLES", TV_SERVERVARIABLES