i have a question on PHP Session Handling.
I have extended my Ext.Direct apllication (http://extjs.com/forum/showthread.php?t=69840) with a session handling on PHP backend side.
The initial PHP script setups the session:
After that all the UI stuff is loaded.
SessionControler :: init($initialParams)
Anytime later within the client a method is called that is provided via Ext.Direct. Then router.php (http://extjs.com/forum/showthread.php?t=68186) is called:
Now my question: What should i do, if the session could not be resumed (e.g. idle time out)? In this case it's not allowed to deliver any results. The client needs to be informed that the session is no longer valid. How can i do this? I dont't want to break the comunication between the Ext.Direct PHP backend and the Ext client.
if (false === SessionControler :: resume())
// Error handling
// this should alwasy be set but if its not, then execute api.php without outputting it
$api = new ExtDirect_API();
$router = new ExtDirect_Router($api);
Thanks in advance,