Read Session Id using Javascript

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

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

7条回答
  •  心在旅途
    2020-12-24 07:04

    you can probably ping the server via ajax inside javascript. The php file might look something like:

    
    

    This will return you the current session id. Was this what you were looking for.

提交回复
热议问题