# Reset of Session number (automation script)?

**URL:** <https://discuss.saleae.com/t/reset-of-session-number-automation-script/2913>\
**Category:** Support\
**Created:** [June 12, 2024, 6:55am UTC](https://discuss.saleae.com/t/reset-of-session-number-automation-script/2913 "2024-06-12T06:55:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![timreyes](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.saleae.com/timreyes/32/108_2.png) [@timreyes](https://discuss.saleae.com/u/timreyes)\
**Post date:** [June 13, 2024, 9:37pm UTC](https://discuss.saleae.com/t/reset-of-session-number-automation-script/2913/2 "2024-06-13T21:37:26Z")

</div>

@michael Thanks for reporting this issue to us. The automatic counting upwards of the session number while the software is left open is something we should certainly fix. I ended up posting on our ideas site below to make sure we record this request publicly. I’ve also linked your forum post there.

> **[Automation API - Reset the Session Number - Logic 2 - Ideas and Feature...](https://ideas.saleae.com/b/feature-requests/automation-api-reset-the-session-number)**
>
> Original report of this issue is below:
> discuss.saleae.com/t/reset-of-session-number-automation-script/2913
> 
> "Hi
> I use the example automation script (thread) with Manager.connect.
> It is working fine, but I have not found a way to reset the sessio

In the meantime, one workaround would be to close and re-open the application using your script to reset the session number (not a great and clean solution, unfortunately).

Something like…  
[`with automation.Manager.launch() as manager:`](https://saleae.github.io/logic2-automation/automation.html#saleae.automation.Manager.launch)  
…will automatically launch the software and close it once you exit the `with` block.

---

_[View the full topic](https://discuss.saleae.com/t/reset-of-session-number-automation-script/2913)._
