从 iframe 中获取会话信息

发布于 2024-09-15 07:44:53 字数 353 浏览 2 评论 0原文

我有一个使用数据库来存储其会话数据的站点。在这个网站上,我有一个链接,可以打开一个包含 iframe 的页面。在 iframe 内部,我有一个第 3 方应用程序,它使用自己的会话信息进行登录等。

当我在第 3 方应用程序内部时,我希望能够从我自己站点的数据库会话访问 $_SESSION 信息,但是当我执行 var_dump 来检查 $_SESSION,我只获取第 3 方应用程序的会话信息,而不是我网站的会话信息。

我不想触及处理会话的第 3 方应用程序的代码,因为担心破坏第 3 方应用程序,所以如果有一种方法可以在不触及第 3 方会话配置的情况下访问我的网站 $_session 信息这就是我希望实现的目标。

可以这样做吗?感谢您的帮助。

I have a site that uses the database for storing its session data. on this site I have a link which opens a page that contains an iframe in it. Inside the iframe I have a 3rd party app that is using its own session information for login, etc.

When I am inside the 3rd party app I want to be able to access the $_SESSION information from my own site's db session, but when I do a var_dump to check out the $_SESSION, I only get the 3rd party app's session information and not my site's.

I'm not wanting to touch the code for the 3rd party app that handles the session, for the fear of breaking the 3rd party app, so if there is a way to get to my sites $_session info without touching the 3rd party session configuration that's what I'm hoping to accomplish.

Is it possible to do this? Thanks for your help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文