English 中文(简体)
ExtJS: 储存、管道和管道
原标题:ExtJS: store, pagingToolbar and PHP session expire

让我们想象一下,你在一页上有一个有 p子的ExtJS网。 让我们想象一下,你在这个页子里留有一段时间,而此时此刻,你的购买力平价会议结束。 当你在电网上打上“Next page”或“reload”时,向服务器发出的呼吁将失败,因为它会用一些内容回答,告诉你,不允许你获取信息(因为你的会议已经过期)。

你们怎样才能在电网中处理,以避免陷入困境? 我希望这一点足够清楚。

!!

最佳回答

You ll need some sort of heartbeat mechanism, which means that you must periodically send an AJAX call to your server to keep the PHP session alive. If you re using Ext.direct you can simply make use of the Ext.direct.PollingProvider which is by far the most convenient way to implement such a heartbeat. If you re not using Ext.direct you can use Ext.TaskMgr or Ext.util.TaskRunner to call a function periodically in which you can simply issue an AJAX request.

执行细节留给禁止化学武器组织处理。

问题回答

暂无回答




相关问题
why the session in iis automatically log out?

I used iis6, and when i called a function Directory.delete(), the all the session relate this website will be logged out. and i debugged the website, i found no exception. any one have ideas on this ? ...

Check session from a view in CodeIgniter

What is the best way to check session from a view in CodeIgniter, it shows no way in their user guide, otherwise I will have to make two views on everything, which is kinda weird...still a newbie to ...

Can I get the size of a Session object in bytes in c#?

Is it possible to get the size(in bytes) of a Session object after storing something such as a datatable inside it? I want to get the size of a particular Session object, such as Session["table1"], ...

提供严格分类的出席会议物体

提供严格分类的与会机会的最佳方式是什么? 我正计划转而选择矩阵,这正在促使汇编者抱怨我的幻觉方案拟订方法......

PHP Session is not destroying after user logout

I m trying to create an authentication mechanism for my PHP Application and I m having difficulty destroying the session. I ve tried unsetting the authentication token which was previously set within ...

热门标签