regenerating session id

前端 未结 5 1139
野的像风
野的像风 2020-12-31 14:44

I am thinking of using this code on every page to reduce the possibility of session hijacking. By renewing the session_id on every request

if(!empty($_sessio         


        
5条回答
  •  情深已故
    2020-12-31 14:53

    Best practise is to use SSL (and apply the usual defences against other security attack vectors such as XSS and SQL injection). Cycling session ids is just begging for race conditions.

提交回复
热议问题