Eliminar cookies en el lado del cliente con PHP

I've made a login portal from my site to automatically login in other site. It works perfect. However, when I logged out I cannot login back from my site anymore because the site does not remove the last session. So I only can login when I started a new session, and can't login again with the same session for the next session after logged out.

I've asked the other site, and they suggest me to remove the cookie which is stored on the client side. How is it possible to remove cookies on client side from other sites with PHP??

Muchas Gracias

preguntado el 05 de septiembre de 12 a las 10:09

you can remove cookie but not session cookie. -

has probado session_destroy()?? -

2 Respuestas

setcookie ("TestCookie", "", time() - 3600);// set the time to minus to remove the cookie.

Respondido el 05 de Septiembre de 12 a las 11:09

to delete cookie set it's expiry time to past,

setcookie ("TestCookie", "", time() - 3600);

more see in PHP manual cookie's manual .

Respondido el 05 de Septiembre de 12 a las 11:09

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.