PHP Cookies works well on localhost, but it's not working on live server

后端 未结 6 1259
死守一世寂寞
死守一世寂寞 2021-01-21 20:25

Note: This issue is already solved, finally I found that it\'s not cookies problem, the problem is on unserialize() function. The serialized cookie which

6条回答
  •  梦谈多话
    2021-01-21 20:54

    Try exit() after the Location-header.

    A Location-header does not prevent a PHP-script from executing further instructions, maybe there is something executed after the header that causes the misbehaviour.

提交回复
热议问题