Can session value be hacked?

后端 未结 7 1543
青春惊慌失措
青春惊慌失措 2020-12-05 19:05

When I came out of a site without logging out, next time i browse that site I found I am logged in there? How that server restore the session value for my browser? Is there

7条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-05 19:23

    In all technologies I'm aware of web-based session values are stored on the remote server. So, to hack your session values would require hacking the remote-server. What you are encountering is the fact that your session identifier is stored in a cookie (a session cookie), so that when you re-open your browser the cookie is being used to identify you and provide access to your remote session. Normally session cookies have a short TTL (time to live) before they expire and log you out, but if not then explicitly logging out should clear it. If you are really worried you can delete your cookies.

提交回复
热议问题