Splash › Forums › PrettyFaces Users › Delete cookie
Tagged: http, Prettyfaces, response, rewrite
This topic contains 3 replies, has 2 voices, and was last updated by walluz 1 year, 10 months ago.
This is situation, I have two mapped patterns
, and I want to delete cookies when the user’s logout in the first one patterns this works fine but in the second one don’t.
This is my code for delete the cookies
Cookie cookie = new Cookie(name, value);
Well, you are calling .addCookie(). I’m pretty that this method won’t delete cookies. 😉
Actually I’m updating the age of the cookie to 0 seconds which removes it from the browser. The problem is that when I use the second pattern this does not work
I solved the problem just setting cookies path to “/”, for some reason I only need to do this if I’m using prettyfaces.
You must be logged in to reply to this topic.
Comments are closed.
If you find our tools useful, please consider making a donation to help us stay online and building software!