简体   繁体   English

在浏览器后退 php 代码未执行

[英]On browser back php code is not executed

On browser back php code is not executed in login.在浏览器后台,登录时不执行 php 代码。 Steps there 2 webpage lets call x and y user can login from any of page either x or y 1.currently user is on x page 2.user navigate to y page and do login 3.user click on browser back button and came to x page 4.on x page it does not show login.步骤有 2 个网页让调用 x 和 y 用户可以从 x 或 y 的任何页面登录 1.当前用户在 x 页面上 2.用户导航到 y 页面并登录 3.用户单击浏览器后退按钮并来到 x第 4 页。在 x 页上,它不显示登录信息。 5.once i refreshed x page it start showing login 5.一旦我刷新了 x 页面,它就开始显示登录信息

why this happens i am storing login values in session.为什么会发生这种情况我在会话中存储登录值。

thank u感谢你

The back() method loads the previous URL in the history list. back() 方法加载历史列表中的前一个 URL。 This is the same as clicking the "Back button" in your browser, or history.这与单击浏览器或历史记录中的“返回按钮”相同。

Just refresh the page by going directly to index.php直接进入 index.php 刷新页面

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM