session logout
Posted: Fri Apr 10, 2015 11:56 pm
Hi Roger,
I want at EndOfSession call function DeleteNonActiveItems(), but I don’t know,
what event and where in cxp code I must check/test it.
In attached example I have workaround, that I call it at start-up of cxp file.
Other solution may be also call this function from desktop version of app in needed interval in background thread.
Or next solution may be simple app with few lines of code something like in testDNAI.prg...
BUT, there are some problems or limitations of these solutions:
it will only works, if desktop or resident app will be running or any other web user will open web page...
So I want/need any solution, which will call that function, when SessionManager will close session and also delete all variables/assigning to NIL values,
because it may be very long time, when some of these situations occurs
and logged users or reserved items/products are still blocked
and no one other can work with them until they are unblocked...
Zdeno
I want at EndOfSession call function DeleteNonActiveItems(), but I don’t know,
what event and where in cxp code I must check/test it.
In attached example I have workaround, that I call it at start-up of cxp file.
Other solution may be also call this function from desktop version of app in needed interval in background thread.
Or next solution may be simple app with few lines of code something like in testDNAI.prg...
BUT, there are some problems or limitations of these solutions:
it will only works, if desktop or resident app will be running or any other web user will open web page...
So I want/need any solution, which will call that function, when SessionManager will close session and also delete all variables/assigning to NIL values,
because it may be very long time, when some of these situations occurs
and logged users or reserved items/products are still blocked
and no one other can work with them until they are unblocked...
Zdeno