The state of the task will be changed from RESUMED to SUSPENDED as soon as the session will be destroyed. This transition is called *reset* `ch.ivyteam.ivy.workflow.ITask.reset()`. There are multiple reasons why the session will be destroyed:
- the session simply expires
- the user actively logout
There is also an API method to logout an user:
- ch.ivyteam.ivy.security.ISession.logoutSessionUser()
And have look here in the sub chapter *Task with session timeout*:
[https://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.concepts.html#ivy-wf-states][1]
[1]: https://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.concepts.html#ivy-wf-states