从任何网站获取会话名称?
是否可以查明是否有网站声明 $_SESSION?
如果是这样,获取 $_SESSION 名称的列表?
Is it possible to find out if any website is declaring $_SESSION?
If so, get a list of $_SESSION name?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果“会话名称”的意思是“用于保存将会话与浏览器关联起来的令牌的 cookie 的名称”,则向该站点发出 HTTP 请求,查看是否返回 cookie,应用一些启发式方法来猜测是否它是一个会话令牌或其他一些数据。
缺陷:
如果您的意思是“存储在会话中的数据片段”,那么这是不可能的。数据完全保存在服务器上,只有会话 ID 令牌会提供给客户端——这就是会话的要点。
If by "session name" you mean "the name of a cookie used to hold the token that associates a session with a browser" then make an HTTP request to the site, see if you get a cookie back, apply some heuristics to guess if it is a session token or some other piece of data.
Flaws:
If you mean "The pieces of data that are stored in the session", then that is impossible. The data is kept entirely on the server and only the session id token is given to the client — that is the point of sessions.
没有。这是不可能的……
Nope. It is not possible......