PETER ZHOU
Timeout in webdev November 25, 2008 10:52AM |
IkBeen.pcs.crosspost
Re: Timeout in webdev November 25, 2008 02:30PM |
Peter Holemans
Re: Re: Timeout in webdev November 25, 2008 09:02PM |
PETER ZHOU
Re: Re: Timeout in webdev December 02, 2008 05:04AM |
Quote
Peter H.
Hi,
You can even easily manage this in an elegant way.
For as long as the user has its browser open on the app have a timer browser procedure trigger a procedure on the server (AjaxExecuteAsynchronous) which will reset the time-out counter every time. This allows you to have a low time-out value on teh app server (say every 2 minutes) but keep users logged on as long as theyy have the app open in the browser side.
Just my 2 cents,
Peter
Peter Holemans
PETER ZHOU
Re: Re: Timeout in webdev December 09, 2008 03:41PM |
Quote
PETER ZHOUQuote
Peter H.
Hi,
You can even easily manage this in an elegant way.
For as long as the user has its browser open on the app have a timer browser procedure trigger a procedure on the server (AjaxExecuteAsynchronous) which will reset the time-out counter every time. This allows you to have a low time-out value on teh app server (say every 2 minutes) but keep users logged on as long as theyy have the app open in the browser side.
Just my 2 cents,
Peter
Peter Holemans
Thanks!
Quote from help "
// Is AJAX supported by the current browser ?
IF AJAXAvailable() = True THEN
// Run the server procedure ("MyProc")
// As soon as the result of the server procedure ("MyProc") becomes available,
// the browser procedure ("ProcResult") will be run
Res is int
Res = AJAXExecuteAsynchronous(MyProc, ProcResult)
// The following processes are run without waiting for the result
...
// Progress of the server procedure ("MyProc")
IF AJAXAsynchronousCallPending(Res) = True THEN
// Cancel the call to the browser procedure ("ProcResult")
// The result of the server procedure ("MyProc") will not be processed
AJAXCancelAsynchonousCall(Res)
END
ELSE
// Processes without using AJAX
...
END
"
Which embed point do i put this "AJAXExecuteAsynchronous" ?
Regards,
PETER ZHOU