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??

Thanks

4

2 回答 2

0

setcookie ("TestCookie", "", time() - 3600);// 将时间设置为负数以删除 cookie。

于 2012-09-05T10:04:30.030 回答
0

删除 cookie 设置它的过期时间,

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

更多见 PHP manual cookie's manual

于 2012-09-05T10:09:51.247 回答