Faking Session/Cookies?

前端 未结 3 542
余生分开走
余生分开走 2020-12-28 20:09

I\'m not exactly sure how the $_SESSION work in PHP. I assume it is a cookie on the browser matched up with an unique key on the server. Is it possible to fake

3条回答
  •  天涯浪人
    2020-12-28 20:21

    Properly implemented, session ids are very long and random enough to make guessing unfeasible (though if you were able to guess a particular user's session id then yes you would be acting as that user). However you can sniff and hijack sessions -- this is what firesheep does: http://en.wikipedia.org/wiki/Firesheep

提交回复
热议问题