PHP empty session files generated by login system

前端 未结 4 1785
忘了有多久
忘了有多久 2021-01-11 22:48

Recently I\'ve noticed that many blank sessions are being created, I\'m not sure why though as I believe I\'m doing everything the correct way.

At the moment we crea

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-11 23:16

    Shouldn't header("Location: $_SERVER[HTTP_REFERER]"); need to be header("Location: $_SERVER['HTTP_REFERER']"); ? Or is that just something stupid.

    EDIT:

    According to PHP.net you should use the delete_old_session parameter. Have a look HERE

提交回复
热议问题