使用Javascript读取会话ID
问题描述:
是否可以使用javascript读取浏览器会话ID?
Is it by any means possible to read the browser session id using javascript?
答
是的。会话ID通过URL( document.location.href
)或通过cookie( document.cookie
)传输>),您可以检查是否存在会话ID。
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.