Smart Client Inactivity Timeout

Hi,

Is there any way to set a time out for inactivity running the smart client? Ideally the client would log-off after certain period of time.

I am aware the UserManager Plugin (http://www.servoy-plugins.de/plugins/us … lugin.html) can do that, but we’re looking first for something free.

If Servoy doesn’t have any native command for that, what would I have to change/create in Servoy in order to do that. I’m asking because I could write a plugin in Java to do that.

Thank you.

Servoy itself does not have that function.
The tomcat only has a time-out function, for disconnected webclients.

so yes, use the usermanager plugin for that, or write your own plugin

If I was going to write my own plugin, where would I have to be looking at. I’m assuming there is a interface or property we can change somewhere in order to set a timeout. Maybe somewhere in the application server. If that’s the case, if it’s not a big thing to implement and it’s just couple calls through Java code, I’d like to know so I could do it myself.

Thank you.

juliaaano:
If I was going to write my own plugin, where would I have to be looking at. I’m assuming there is a interface or property we can change somewhere in order to set a timeout. Maybe somewhere in the application server. If that’s the case, if it’s not a big thing to implement and it’s just couple calls through Java code, I’d like to know so I could do it myself.

Thank you.

Hi juliaaano,
there’s no such thing as a timeout property or interface for smart clients in the public API.
You could use the IServerAccess.shutDownClient(String clientId) to shut down a remote client but you will have to implement your own logic for idle time, which is probably what Patrick did with his UserManagerPlugin.

Thank you. That’s what I needed to know.

Cheers.

We still do it this way. Ugly but it works:

http://www.servoymagazine.com/home/2007 … ting-.html