php数据库会话处理在IE8 [英] php database session handling in IE8

查看:123
本文介绍了php数据库会话处理在IE8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个HTML页面,从这里定期进行此调用:

I've got an html page from where Im making this call periodically:

function logon(id)
{
 $.get("data.php", { action: 'online', userID: id}, function(data){
  $("#msg").html(data);
 });
}



这个做法是在data.php中调用这个SQL脚本:

What this does is it calls this SQL script in data.php:

$sql = "update user_sessions set expires=(expires + 2) where userID = $userID";
mysql_query($sql, $conn) or die(mysql_error());
echo $sql;



我可以通过echo看到sql语法和值是正确的,但是THE CHANGES TO THE expires领域还没有完成,只有在IE8!它在其他ff,safari,chrome,ie6和7中工作正常。

I can see by the echo that the sql syntax and values are correct, but THE CHANGES TO THE expires FIELD ARE NOT DONE, ONLY IN IE8!! It works fine in other ff, safari, chrome, ie6 and 7.

没有什么浏览器可以做这个sql调用,但user_sessions表用于存储PHP会话。 Im只增加进行调用时的会话到期时间。在IE8的会话处理是什么阻止会话时间改变?是否有需要更改的缓存或Cookie问题?

There is nothing browser specific about making this sql call, but the user_sessions table is used to store PHP's sessions. Im only increasing the session expiry time when the call is made. What in IE8's session handling is preventing the session time from changing? Is there any caching or cookie problem that needs to be changed?

推荐答案

使用.post确保缓存不会造成。

Use .post to ensure caching isn't fouling things up.

这篇关于php数据库会话处理在IE8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆