Jump to content

Session Timeout


Guest

Recommended Posts

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

--

 

.

 

Link to comment
Share on other sites

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.

 

 

.

 

Link to comment
Share on other sites

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

 

--

 

.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...