How users can reconnect to an active AppStream session

0

Case Embedded: User connects to SPA and requests a new embedded AppStream session. This session is embedded as IFrame or as in the AWS sample example in a container. Initially, a request to Streaming URL is sent, then after authentication the URL changes to the URL I called Active Session URL in the example below. That's where the AppStream session is actually streamed at. If a user closes down the browser and wishes to come back to his active session (within Disconnect Timeout) - we cannot send a new create streaming url request because this will lead to an attempt to open a new instance of our app that's already running on this session and crashes it. It's essential to allow the app to be kept running - this case assumes that the user has a work in progress and wants to return to it. reconnect

Case Redirect to AppStream: Testing shows that if a user is instead redirected to that Streaming URL the URL changes to Active Session URL, but at this point, the user has left SPA which isn't the desired outcome. Redirecting to the Streaming URL and connecting to the session within AppStream gives us access to parameters created by AppStream in localstorage such as sessionid, something that's not available while embedding.

How can we get that user's active session URL? Neither iFrame nor the sample container contains that URL.

Is there a way to store that URL used in iframe? And then use it to reconnect to the same session without passing a request to start one more app instance?

asked a year ago240 views
1 Answer
0

The AppID for the streaming URL isn't checked for validity. If you can confirm the user has a valid session, then just pass in an invalid appid, and the user will connect to an existing session. However, what would be better is a simple batchfile app launcher. If the app isn't running, it launches the app. If it is, it does nothing. Then just always pass this appid

profile pictureAWS
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions