eniu
20 Aug 2011, 1:42 AM
Hi there
I'm quite new to ExtJs 4. I'm searching for the best practice to handle authentication in ExtJs. I'm able to authenticate with my server but if the session times out and I make an AJAX request (via. json store / AJAX proxy), the server returns the HTTP status 401 (Unauthorized) and no rows were displayed in my grid. How can I catch and handle this HTTP status? If I just display the login form to authenticate there is the problem that there may be multiple AJAX calls with status 401 and the login form is display for each call.
Any ideas?
Sorry for my bad english.
Regards Sven
I'm quite new to ExtJs 4. I'm searching for the best practice to handle authentication in ExtJs. I'm able to authenticate with my server but if the session times out and I make an AJAX request (via. json store / AJAX proxy), the server returns the HTTP status 401 (Unauthorized) and no rows were displayed in my grid. How can I catch and handle this HTTP status? If I just display the login form to authenticate there is the problem that there may be multiple AJAX calls with status 401 and the login form is display for each call.
Any ideas?
Sorry for my bad english.
Regards Sven