开发者

php session variables problem in Firefox

开发者 https://www.devze.com 2023-04-09 01:38 出处:网络
I set several php session variables in an initial php file. In all other ajax loaded php files the value of those session variables is updated only after refreshing the page. This happen开发者_JAVA技巧

I set several php session variables in an initial php file. In all other ajax loaded php files the value of those session variables is updated only after refreshing the page. This happen开发者_JAVA技巧s only in Firefox. Does anyone know what may cause this to happen? In IE everything works fine.


I found a solution. There was a cache issue. Write:

header("Cache-Control: no-cache");
header("Pragma: no-cache");

after

session_start();

in all your conventional scripts.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号