How can I detect session id change of WApplication?
Added by True Furby over 11 years ago
I have core functionality running on Qt framework and using Wt for user interface.
I made simple interface for Qt signals to Wt session tied to WApplication.
I initially save the WApplication::instance()->sessionId() to a variable.
On emitted signal I use WServer::post() to a function which will emit Wt::Signal, which is connected to some of the widgets method.
Altough, it happens that WApplication session id gets changed. For example during re-logging.
After this happens the saved session id gets invalid and the WServer::post function will never deliver.
How can I detect this session id change of WApplication?
Replies (1)
RE: How can I detect session id change of WApplication? - Added by True Furby over 11 years ago
I actually solved it by saving WApplication pointer instead of session id.
And read the session id from saved pointer when using WServer::post().