How do I delete PHPSESSID on client computers

前端 未结 13 1655
滥情空心
滥情空心 2020-12-30 22:50

UPDATE ON THE PROBLEM:

  • On some browsers, we have two PHPSESSIDs.
  • One PHPSESSID is not set by me anywhere in my script
  • It has
13条回答
  •  无人及你
    2020-12-30 23:22

    If you send manually the header with new expiring date for desired path, the client should remove it.

    session_start();
    header("Set-Cookie:PHPSESSID=".session_id()."; expires=Sat, 07-Nov-1999 14:58:07 GMT; path=/cv/");
    

    The first time, you have the old cookie path, but from the second page call only the cookie in path / will be stored and transmitted.

    You can send this header when you know if the client is affected by this problem or having this for some month.

提交回复
热议问题