EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: joe on April 24, 2013, 10:39:59 AM



Title: Ajax session timeout handling
Post by: joe on April 24, 2013, 10:39:59 AM
datagrid, form, combobox, etc. all can use ajax to post data to the server.  What is the the best practice when handling session timeout?  Is there specific event that I should be using? Or, a "blanket override" I can do to handle a returned session timeout json object?


Title: Re: Ajax session timeout handling
Post by: mzeddd on April 25, 2013, 12:58:45 AM
Not sure I'm answering your question but I had some issues with long responses from server.

In my case I was using TreeGrig and when I tried to expand all the items calling "expandAll" it showed me one subtree, then after a minute another and so on.

My problem disapeared when we reconfigured webserver by moving of session files directory from mouned one to local.


Title: Re: Ajax session timeout handling
Post by: joe on April 25, 2013, 10:51:29 AM
No, I am talking about managing session timeout during an ajax calls.  i.e. Session timed out during a form submit and onload.  Session timeout is such a generalized error that there should be a "global" error trapping for a jeasyui controls.