Releasing web user of GP2013 when it is in idle state

I have to release web users from Dynamics GP 2013 which are in idle state.

by simply deleting it from activity table it does not act as it act by closing application.

please some one tell me the right way to do it manually.