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.

  • Its not correct way to delete user from activity table, There is readymade add-on product available to delete the user when its idle. or you need to write the trigger or query in SQL to check user idle more then 2 hours then delete from session..