脚本宝典收集整理的这篇文章主要介绍了php – 后退按钮的会话问题,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
session_name("login"); session_start(); if (!isset($_SESSION['UserId'])) { if(!header("Location: https://subdomain.mywebsITe.COM/")) { die("Unauthorized access"); } } session_regenerate_id(); $UserId = $_SESSION['UserId'];
Register > Select Service > Select Payment Mode
假设在付款模式下,用户意识到他在第2页输入错误,选择服务,他按下后退按钮,由于会话的使用而发生错误.
错误是
Document Expired This document is no longer available. The requested document is not available in Firefox's cache. As a security PRecaution,Firefox does not automatically re-request sensitive Documents. Click Try Again to re-request the document From the website.
以上是脚本宝典为你收集整理的php – 后退按钮的会话问题全部内容,希望文章能够帮你解决php – 后退按钮的会话问题所遇到的问题。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。