Skip to main content

 

ConnectWise

Stale Session Cleanup

Stale Session Cleanup
StaleSessionCleanerThumbnail.png
Author(s) ConnectWise Labs
Latest version 1.0
Required server version 22.9+

Introduction

The Stale Session Cleanup extension allows technicians to easily identify and delete orphaned, stale, or disconnected Access sessions.

Using the extension

1. Install the extension

You can install the extension on the Extensions page.

Once the extension is installed a new session group Tagged Stale Sessions will appear. By default, the session group will include machines that have been offline for 30 days or more. The extension will tag the machine with a note to delete the stale session.

StaleSessionCleanerNote.png

Note: In order to trigger the extension to run, a session must establish a connection with the server. If an instance has a small number of sessions that remain offline, the extension will not run.

2. (Optional) Edit the extensions settings

From the Extensions page, click the Options menu. Select Edit Settings to open the Edit Extension Settings dialog.

StaleSessionCleanerEditSettings.png

You can optionally configure the extension settings. Set ShouldAutomaticallyDeleteStaleSessions to true to have the extensions automatically delete a stale session. To adjust the number of offline days to identify a session as stale, configure DeleteSessionAfterStaleDayCount..

 

StaleSessionCleanerSettings.png

Extension settings

This extension has the following settings:

String Description Default
ShouldAutomaticallyDeleteStaleSessions true/false on whether sessions identified as stale should be automatically deleted false
StaleSessionIdentifierDayCount A whole integer describing the number of days a machine can be offline before being considered stale 30
DeleteSessionAfterStaleDayCount A whole integer describing the number of days a machine can be offline before being Deleted 30
LastCheckTime INTERNAL ONLY - Do not change. Used to store time of last stale session check  

 

  • Was this article helpful?
Leave feedback