Guest Posted February 22, 2011 Posted February 22, 2011 Message from: "Harry Rogers" Hi Farshad Is it possible to publish and 'OnTimeOut' event ? What I am trying to implement is a mechanism where after a period of no user activity a password is once again required from the user to continue. The application I am developing will replace an older desktop one that has a nice feature in that it 'decays' back to a secure position after a given time interval of no user input. I could get this effect by having every user event pass through a timer but that makes for a lot of work and the server module is already noting when a user event occurs so that would seem a sensible place to grab that notification from. something like procedure TUniServerModule.UniGUIServerModuleOnTimeOut(var NewTimeOut : integer); popping a zero into NewTimeout allows the timeout to complete and a nonzero positive integer causes the timeout to assume that new value. Best regards Harry Rogers -- . Quote
Guest Posted February 22, 2011 Author Posted February 22, 2011 Message from: "Farshad Mohajeri" "Harry Rogers" wrote in message news:kFsteJn0LHA.2160@anaxagvs227... > Hi Farshad > > Is it possible to publish and 'OnTimeOut' event ? > > What I am trying to implement is a mechanism where after a period of no > user activity a password is once again required from the user to > continue. > > The application I am developing will replace an older desktop one that > has a nice feature in that it 'decays' back to a secure position after > a given time interval of no user input. > I could get this effect by having every user event pass through a timer > but that makes for a lot of work and the server module is already > noting when a user event occurs so that would seem a sensible place to > grab that notification from. > > something like > > procedure TUniServerModule.UniGUIServerModuleOnTimeOut(var NewTimeOut : > integer); > > popping a zero into NewTimeout allows the timeout to complete and a > nonzero positive integer causes the timeout to assume that new value. > Seems like a nice feature.Logged as #855 for implementation. However, you can't send anything to the client in this event. For example, you can't pop up a login dialog upon timeout because you can't push anything to the client if there is no request from it first. To do this you must implement a timer which will poll the server frequently. . Quote
Guest Posted February 22, 2011 Author Posted February 22, 2011 Message from: "Harry Rogers" Farshad Mohajeri wrote: > > "Harry Rogers" wrote in message > news:kFsteJn0LHA.2160@anaxagvs227... > > Hi Farshad > > > > Is it possible to publish and 'OnTimeOut' event ? > > > > What I am trying to implement is a mechanism where after a period > > of no user activity a password is once again required from the user > > to continue. > > > > The application I am developing will replace an older desktop one > > that has a nice feature in that it 'decays' back to a secure > > position after a given time interval of no user input. > > I could get this effect by having every user event pass through a > > timer but that makes for a lot of work and the server module is > > already noting when a user event occurs so that would seem a > > sensible place to grab that notification from. > > > > something like > > > > procedure TUniServerModule.UniGUIServerModuleOnTimeOut(var > > NewTimeOut : integer); > > > > popping a zero into NewTimeout allows the timeout to complete and a > > nonzero positive integer causes the timeout to assume that new > > value. > > > > Seems like a nice feature.Logged as #855 for implementation. > > However, you can't send anything to the client in this event. For > example, you can't pop up a login dialog upon timeout because you > can't push anything to the client if there is no request from it > first. > > To do this you must implement a timer which will poll the server > frequently. That's fine - I would simply set a value server side in this instance. Thanks again -- . Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.