<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="No-cache">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="No-cache">
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="No-cache">
还是不行,但一看数据库的确更新了数据的,真是不明的,是不是跟<iframe>有关
我解决了~哈哈~
在session_start();前加上这个
session_cache_limiter('private, must-revalidate');
就行了~
不要使用session_cache_limiter('public');和session_cache_limiter('private');(这两个可能有其它用途~)
session_cache_limiter('private, must-revalidate');
session_start();
$username = "OK La~~~~";
session_register('username');
为安全起见,我测试了一个晚上,才贴出来了~~
header("Cache-Control: post-check=0, pre-check=0", false);
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0