KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a situation where I am making ajax requests to a server from various Ext gridpanel etc. In an Admin area. The logged in user will be logged out if there is no activity for eg. 5 minutes which is normal. In this case the server sends back a redirect 403 to the login page. Right now I am inserting a: listeners: { exception: function(proxy, response, operation, eOpts) { if (response.status == '403') window.location = 'login'; } } To every store's proxy which is a little overkill. Could someone be kind enough and let me know how I could add a listener to all communications between ExtJS and server? I am using the MVC Application Architecture so it could probably be a one liner in the controller.js or app.js . Thanks
Tags (comma-separated)
Save Edits
Cancel