Extjs ajax 调用中的会话过期
extjs load() 函数中的会话经常过期。当我尝试将数据加载到表单、网格和选项卡面板时,会话经常会过期。
示例表单加载
exam_edit_form.load({
url: 'page_url.php',
method:'POST',
success: function(form, action){
var chapter_name = action.result.data.test_chapter_combo;
Ext.getCmp('chap_exam_id').setValue(chapter_name);
}
});
有什么想法吗?
Session expires frequently in extjs load() function. When i'm trying to load data into forms, grids and tabpanels frequently session is expiring.
Example form load
exam_edit_form.load({
url: 'page_url.php',
method:'POST',
success: function(form, action){
var chapter_name = action.result.data.test_chapter_combo;
Ext.getCmp('chap_exam_id').setValue(chapter_name);
}
});
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
也许 ExtJs 会在属性 failureType 中指定问题?
http:// docs.sencha.com/ext-js/4-0/#!/api/Ext.form.action.Action-property-failureType
Maybe ExtJs will specify the Problem in property failureType?
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.form.action.Action-property-failureType
这是由 AJAX 调用期间发生会话更新引起的。浏览器不会保留会话 ID,并且会话会丢失并在下次调用时重新生成。
CodeIgniter 社区已意识到该问题,目前正在制定解决方案。 https://github.com/EllisLab/CodeIgniter/issues/154
该错误报告有一些潜在的修复。
This is caused by a session update happening during an AJAX call. The session ID is not retained by the browser, and the session is lost and regenerated on the next call.
The CodeIgniter community is aware of the issue and is currently working out the resolution. https://github.com/EllisLab/CodeIgniter/issues/154
The bug report has some potential fixes.