{"id":1047,"date":"2019-08-09T15:11:21","date_gmt":"2019-08-09T22:11:21","guid":{"rendered":"https:\/\/portal.staylinked.com\/sl\/kb\/?post_type=ht_kb&#038;p=1047"},"modified":"2026-01-02T12:57:55","modified_gmt":"2026-01-02T20:57:55","slug":"session-persistence","status":"publish","type":"ht_kb","link":"https:\/\/portal.staylinked.com\/sl\/kb\/knowledge-base\/session-persistence\/","title":{"rendered":"Session Persistence"},"content":{"rendered":"\n<p>As the key benefit of the StayLinked solution, the Server and Clients use a few different mechanisms to return users to their existing sessions. StayLinked should always return the user to where they left off, even in environments where devices can change network addressing or subnet. The only reason a user should not get back to their session is in cases where it has been intentionally ended. This may be by the telnet host due to inactivity, backup processes or other activities that terminate the telnet connection. This brief guide aims to describe the mechanisms, what can go wrong and solutions to these rare instances.<\/p>\n\n\n\n<h2>Client Unique ID (UID)<\/h2>\n\n\n\n<p>When a StayLinked Client is installed on a device, it populates a registry value with the default UID. During the startup of the Client, the default value will be automatically replaced with a unique value, typically the MAC address of the primary network adapter. Values that are not the default entry are left as-is. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright\"><img loading=\"lazy\" width=\"239\" height=\"318\" src=\"https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/Splash-MC92N0M_E5.jpg\" alt=\"\" class=\"wp-image-1048\" srcset=\"https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/Splash-MC92N0M_E5.jpg 239w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/Splash-MC92N0M_E5-225x300.jpg 225w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/Splash-MC92N0M_E5-38x50.jpg 38w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/Splash-MC92N0M_E5-45x60.jpg 45w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/Splash-MC92N0M_E5-75x100.jpg 75w\" sizes=\"(max-width: 239px) 100vw, 239px\" \/><\/figure><\/div>\n\n\n\n<p>The\nimage to the right shows the \u2018About\u2019 screen of a Client. Not only does it show\nthe current value, but it also includes a button that allows the registry entry\nto be reset to the default value. During the next startup, this would be\nreplaced by the unique value determined by the StayLinked Client.<\/p>\n\n\n\n<p>Any device connecting to the StayLinked Server will pass on this UID value, allowing the Server to identify devices&nbsp;even if they have changed network address or adapter.<\/p>\n\n\n\n<h2>Imaging and Cloning<\/h2>\n\n\n\n<p>One of the most common instances under the\ncategory, \u201cwhat can go wrong,\u201d is when devices are cloned or imaged for a\n\u2018known good\u2019 install. Replicating a populated UID value to multiple devices\nmakes each device report the same UID to the StayLinked Server. This \u2018less than\nunique\u2019 value would cause devices to steal an existing session from another\ndevice with that same UID. <strong>When creating\na device image, the UID should be reset before creating the image and before\nthe Client is run again.<\/strong> The Client restart would trigger a rebuild of the UID\nvalue that is specific to that host device.<\/p>\n\n\n\n<p>There are six methods of resetting the UID on a current device. Not all Clients support all of these options.<\/p>\n\n\n\n<p><strong>Option 1)<\/strong> Many Windows-based devices can use the \u2018Reset UID\u2019 button on the About screen as shown on the image at the top of this article. The About screen would be displayed by selecting the File menu and selecting the About option. Devices using the full screen mode setting will not display these menus and must be taken out of full screen mode in order to access the About screen.<\/p>\n\n\n\n<p><strong>Option 2)<\/strong> Android and Java Clients\nstore the UID value as part of a persistent file called session.ini. For these\nclients, you can delete the session.ini and restart the client to generate a\nnew UID. Note that these clients will not be able to recover a session left\nunder an old UID. This means it\u2019s important to clean up old sessions when you\nreset an android or Java client, since they become orphaned without a client\nowning the associated UID.<\/p>\n\n\n\n<p><strong>Option 3)<\/strong> Windows CE and Windows Mobile devices can use a registry file or manually edit the device registry back to the default value. On most devices, the registry value would be found in the following hive:<\/p>\n\n\n\n<p><code>[HKEY_LOCAL_MACHINE\\Software\\Apps\\eSP Stay-Linked]<br>; Reset UID<br>\"eSP_UID\"=string:A0DEADBEEF0D<\/code><\/p>\n\n\n\n<p>This section can be copied to a text document with the .reg file extension and then manually merged on your device.<\/p>\n\n\n\n<p><strong>Option 4)<\/strong> Adjust the client configuration file staylink.ini with an entry for uid_override=XXXXXXXXXXXX where the 12-character value uses only hexadecimal values (0-9 and A-F) avoiding lower-case letters. Many clients v11 and higher support this entry to replace the standard method of retrieving a unique identifier.<\/p>\n\n\n\n<p><strong>Option 5)<\/strong> Create a Scan2Command barcode to reset the UID. These barcodes can be scanned into the StayLinked Client scan test. You should close existing sessions for this device and use the Tools &gt; Scan Test option.<\/p>\n\n\n\n<p><strong>Option 6)<\/strong> Starting with Administrator version 15.5, the Scan2Configure setting for the UID override is available. This client setting should be configured for specific devices and can help avoid the need to manually find and configure remote devices. Be sure to set a value with exactly 12 characters in the Hexadecimal range 0-9 or A-F.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"342\" height=\"285\" src=\"https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2023\/11\/image-4.png\" alt=\"\" class=\"wp-image-4702\" srcset=\"https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2023\/11\/image-4.png 342w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2023\/11\/image-4-300x250.png 300w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2023\/11\/image-4-50x42.png 50w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2023\/11\/image-4-60x50.png 60w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2023\/11\/image-4-100x83.png 100w\" sizes=\"(max-width: 342px) 100vw, 342px\" \/><\/figure>\n\n\n\n<p><strong>Be sure not to use the \u2018Restart Client\u2019 barcode if the device will be your image source.<\/strong> Create your image before the StayLinked Client is allowed to start again. These barcodes have been included in this article using the Code 128 symbology, but may need some print quality adjustments in order to be printed and readable by your device scanner.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright size-large\"><img loading=\"lazy\" width=\"438\" height=\"428\" src=\"https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2023\/04\/session_persist_01.png\" alt=\"\" class=\"wp-image-4203\" srcset=\"https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2023\/04\/session_persist_01.png 438w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2023\/04\/session_persist_01-300x293.png 300w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2023\/04\/session_persist_01-50x50.png 50w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2023\/04\/session_persist_01-60x60.png 60w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2023\/04\/session_persist_01-100x98.png 100w\" sizes=\"(max-width: 438px) 100vw, 438px\" \/><\/figure><\/div>\n\n\n\n<p>When scanning these barcodes, the Randomize UID code should only be used on devices that are unable to normally return a unique value. Use the Reset UID and then Restart Client barcodes to immediately affect the UID on devices that were improperly cloned with a common UID. <\/p>\n\n\n\n<p>Devices with tethered scanners must be configured properly for scanner-as-wedge before using these barcodes. More information on scanner-as-wedge can be found in the <a href=\"..\/knowledge-base\/scanner-as-wedge\/\">scanner-as-wedge<\/a> technical reference article.<\/p>\n\n\n\n<p>Devices that are already in a session will be unable to reconnect to that session if their UID is changed and the device reconnects to the StayLinked Server.<\/p>\n\n\n\n<h2>The Session ID<\/h2>\n\n\n\n<p>When a device establishes a connection to the StayLinked Server, that session will be assigned a session ID. This value is stored by the Client, allowing it to ask for existing sessions on the Server by name. This image of the Administrator shows the session ID as the first visible column in the connections list. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"758\" height=\"284\" src=\"https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/3-Total-Connections.jpg\" alt=\"\" class=\"wp-image-1050\" srcset=\"https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/3-Total-Connections.jpg 758w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/3-Total-Connections-300x112.jpg 300w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/3-Total-Connections-50x19.jpg 50w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/3-Total-Connections-60x22.jpg 60w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/3-Total-Connections-100x37.jpg 100w\" sizes=\"(max-width: 758px) 100vw, 758px\" \/><\/figure>\n\n\n\n<p>Double\nclicking on a session in this list will display the connection details. The\nunique ID, hardware address and IP address are just a few of the details\nprovided in this panel.<\/p>\n\n\n\n<p>Each Client writes the session ID to a local file on the device. This file, called session.ini allows the Client to check the last session ID when connecting to the StayLinked Server. Clients will pass a session ID of 00000 to the Server in order to ask for a new session.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright\"><img loading=\"lazy\" width=\"401\" height=\"352\" src=\"https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/Connection-Details.jpg\" alt=\"\" class=\"wp-image-1051\" srcset=\"https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/Connection-Details.jpg 401w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/Connection-Details-300x263.jpg 300w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/Connection-Details-50x44.jpg 50w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/Connection-Details-60x53.jpg 60w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/Connection-Details-100x88.jpg 100w\" sizes=\"(max-width: 401px) 100vw, 401px\" \/><\/figure><\/div>\n\n\n\n<p>It is important that file management utilities do not modify or replace this file as it may interfere with the session recovery features of the StayLinked Server. <br><br><br><br><br><\/p>\n\n\n\n<h3>Orphan Detection<\/h3>\n\n\n\n<p>The StayLinked Server Settings dialogue\ncontains a checkbox for an \u2018Orphan Detection\u2019 feature. This will allow Clients\nrequesting session ID 00000 to connect to an existing session if one is found\nto match the unique ID of that Client. Servers using multi-session licensing\nwill always be provided a new session when session ID 00000 is requested.<\/p>\n\n\n\n<h3>Session Cleanup<\/h3>\n\n\n\n<p>Devices requesting an invalid session ID are not subject to orphan detection rules. As mentioned previously, if the session.ini is modified or replaced with an old or invalid session ID, the StayLinked Server will terminate any active sessions associated with the device\u2019s Unique ID and provide the device with a new session.<\/p>\n\n\n\n<h2>The StayLinked Manager Log<\/h2>\n\n\n\n<p>During the connection process, the Client and Server complete a handshake to initiate a connection. The details of this handshake is documented in several places, including the <a href=\"..\/knowledge-base\/secure-communication-guide\/\">Secure Communications Guide<\/a> and Technical Reference for <a href=\"..\/knowledge-base\/err-host-timeout\/\">Host Timeout<\/a>. The following samples have several values color-coded here to help identify them. <\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"683\" height=\"263\" src=\"https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/Manager-log-key.jpg\" alt=\"\" class=\"wp-image-1054\" srcset=\"https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/Manager-log-key.jpg 683w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/Manager-log-key-300x116.jpg 300w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/Manager-log-key-50x19.jpg 50w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/Manager-log-key-60x23.jpg 60w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/Manager-log-key-100x39.jpg 100w\" sizes=\"(max-width: 683px) 100vw, 683px\" \/><\/figure>\n\n\n\n<p>The\ndetails included in this string provide enough information for the Server to\nget the Client back to an existing session, or start processing for a new\nsession.<\/p>\n\n\n\n<p>This device had a later interruption in network communications, prompting it to query the StayLinked Server to confirm that the session was still valid. This \u2018<em>query session status<\/em>\u2019 is recorded in the Manager log file with the request and response.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"694\" height=\"49\" src=\"https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/manager-log-results.jpg\" alt=\"\" class=\"wp-image-1056\" srcset=\"https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/manager-log-results.jpg 694w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/manager-log-results-300x21.jpg 300w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/manager-log-results-50x4.jpg 50w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/manager-log-results-60x4.jpg 60w, https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/manager-log-results-100x7.jpg 100w\" sizes=\"(max-width: 694px) 100vw, 694px\" \/><\/figure>\n\n\n\n<p>These features work together to provide users with session reliability for their telnet connections. They also allow the StayLinked Server to transfer sessions between different Clients, or share a single telnet session among multiple devices using \u2018session partnerships\u2019 and sharing from the StayLinked Administrator. Sessions cannot be transferred between different telnet servers or between production and backup StayLinked Servers.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As the key benefit of the StayLinked solution, the Server and Clients use a few different mechanisms to return users to their existing sessions. StayLinked should always return the user to where they left off, even in environments where devices can change network addressing or subnet. The only reason a&#8230;<\/p>\n","protected":false},"author":7,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":[],"ht-kb-category":[59],"ht-kb-tag":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Session Persistence &ndash; StayLinked<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.staylinked.com\/knowledge-base\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Session Persistence &ndash; StayLinked\" \/>\n<meta property=\"og:description\" content=\"As the key benefit of the StayLinked solution, the Server and Clients use a few different mechanisms to return users to their existing sessions. StayLinked should always return the user to where they left off, even in environments where devices can change network addressing or subnet. The only reason a...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/portal.staylinked.com\/sl\/kb\/knowledge-base\/session-persistence\/\" \/>\n<meta property=\"og:site_name\" content=\"StayLinked\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-02T20:57:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/Splash-MC92N0M_E5.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/portal.staylinked.com\/sl\/kb\/#website\",\"url\":\"https:\/\/portal.staylinked.com\/sl\/kb\/\",\"name\":\"StayLinked Knowledge Base\",\"description\":\"Partner Portal Resources and Support\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/portal.staylinked.com\/sl\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/portal.staylinked.com\/sl\/kb\/knowledge-base\/session-persistence\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/Splash-MC92N0M_E5.jpg\",\"contentUrl\":\"https:\/\/portal.staylinked.com\/sl\/kb\/wp-content\/uploads\/2019\/08\/Splash-MC92N0M_E5.jpg\",\"width\":239,\"height\":318},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/portal.staylinked.com\/sl\/kb\/knowledge-base\/session-persistence\/#webpage\",\"url\":\"https:\/\/portal.staylinked.com\/sl\/kb\/knowledge-base\/session-persistence\/\",\"name\":\"Session Persistence &ndash; StayLinked\",\"isPartOf\":{\"@id\":\"https:\/\/portal.staylinked.com\/sl\/kb\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/portal.staylinked.com\/sl\/kb\/knowledge-base\/session-persistence\/#primaryimage\"},\"datePublished\":\"2019-08-09T22:11:21+00:00\",\"dateModified\":\"2026-01-02T20:57:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/portal.staylinked.com\/sl\/kb\/knowledge-base\/session-persistence\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/portal.staylinked.com\/sl\/kb\/knowledge-base\/session-persistence\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/portal.staylinked.com\/sl\/kb\/knowledge-base\/session-persistence\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/portal.staylinked.com\/sl\/kb\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\/\/portal.staylinked.com\/sl\/kb\/knowledge-base\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Session Persistence\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/portal.staylinked.com\/sl\/kb\/wp-json\/wp\/v2\/ht-kb\/1047"}],"collection":[{"href":"https:\/\/portal.staylinked.com\/sl\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/portal.staylinked.com\/sl\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/portal.staylinked.com\/sl\/kb\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/portal.staylinked.com\/sl\/kb\/wp-json\/wp\/v2\/comments?post=1047"}],"version-history":[{"count":9,"href":"https:\/\/portal.staylinked.com\/sl\/kb\/wp-json\/wp\/v2\/ht-kb\/1047\/revisions"}],"predecessor-version":[{"id":5848,"href":"https:\/\/portal.staylinked.com\/sl\/kb\/wp-json\/wp\/v2\/ht-kb\/1047\/revisions\/5848"}],"wp:attachment":[{"href":"https:\/\/portal.staylinked.com\/sl\/kb\/wp-json\/wp\/v2\/media?parent=1047"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/portal.staylinked.com\/sl\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=1047"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/portal.staylinked.com\/sl\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=1047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}