Eliminar cookies en el lado del cliente con PHP
Frecuentes
Visto 2,208 veces
1
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
2 Respuestas
0
setcookie ("TestCookie", "", time() - 3600);// set the time to minus to remove the cookie.
Respondido el 05 de Septiembre de 12 a las 11:09
0
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 php session cookies browser or haz tu propia pregunta.
you can remove cookie but not session cookie. - Poonam
has probado
session_destroy()
?? - Yang