Read Session Id using Javascript

前端 未结 7 1818
被撕碎了的回忆
被撕碎了的回忆 2020-12-24 06:33

Is it by any means possible to read the browser session id using javascript?

7条回答
  •  攒了一身酷
    2020-12-24 07:08

    Yes. As the session ID is either transported over the URL (document.location.href) or via a cookie (document.cookie), you could check both for the presence of a session ID.

提交回复
热议问题