bareflix
25 Apr 2010, 10:49 AM
I've just set up extjs 3.2.0 with the ext-direct-php-1.01 server-side code.
I want to have the router return a 403 error for any api call if the user is not logged in. I'm planning to use a session cookie to track logins as with non-ajax apps, so the cookie could disappear at any time.
Given that the ext.direct functions only have 1 callback regardless of the results, is there any good way to catch the 403 error, show the login, process it, then execute the original request?
I saw an older example for the AJAX operations that did this as an extension. Is that possible with ext.direct?
If you know of any other pointers or examples, please let me know.
It seems like almost everyone will need to do this, so I hope it gets added to the core code someday.
--
Chris Bare
I want to have the router return a 403 error for any api call if the user is not logged in. I'm planning to use a session cookie to track logins as with non-ajax apps, so the cookie could disappear at any time.
Given that the ext.direct functions only have 1 callback regardless of the results, is there any good way to catch the 403 error, show the login, process it, then execute the original request?
I saw an older example for the AJAX operations that did this as an extension. Is that possible with ext.direct?
If you know of any other pointers or examples, please let me know.
It seems like almost everyone will need to do this, so I hope it gets added to the core code someday.
--
Chris Bare