RESTful knowledge exchange
Post Reply
Attackmonkey
Novice
Posts: 7
Liked: never
Joined: Jul 20, 2018 1:56 pm
Full Name: Tim Payne
Contact:

Sign Out Question

Post by Attackmonkey » Oct 05, 2018 11:12 am

I have a question about signing out from the Restful API using the (DELETE) /logonSessions/{ID} endpoint.

Does calling this method tidy up all resources allocated to that logon session? For example if that session had mounted a backup to browse, is the mount automatically deleted as part of the sign out process, or should we be firing the API calls to remove any active mounts etc BEFORE we call the sign out endpoint?

benyoung
Service Provider
Posts: 78
Liked: 15 times
Joined: May 25, 2016 3:29 am
Full Name: Ben Young
Contact:

Re: Sign Out Question

Post by benyoung » Oct 07, 2018 7:18 pm

I don't think the API has any logic built in to tear down any active restore sessions that are actively running but not something i have directly tested (would be a quick enough test) - In our web interface I have a disconnect button to allow the user to tear it down as well as detect page change (angular route change) if they are browsing off to also trigger a disconnect if it is still connected on view change.

Veeam B&R it self does tear down inactive backup sessions automatically after 15 minutes in our environment, i do believe we worked with support on this as our default was not set to this and sessions were staying active for longer, Sorry i cant find the email but i know this was adjustable via the registry - someone from Veeam may have the internal doc on this they could provide so you can test your B&R environment out

v.eremin
Product Manager
Posts: 16192
Liked: 1322 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Sign Out Question

Post by v.eremin » Oct 09, 2018 1:10 pm

For example if that session had mounted a backup to browse, is the mount automatically deleted as part of the sign out process
Correct, unless there is a restore running. Thanks!

benyoung
Service Provider
Posts: 78
Liked: 15 times
Joined: May 25, 2016 3:29 am
Full Name: Ben Young
Contact:

Re: Sign Out Question

Post by benyoung » Oct 09, 2018 7:24 pm

Ah yes that brings back memories of the support call now, as we almost always had a restore running that the user initiated/we had to capture the leave page event if they had not disconnected - thankfully that inactive restore session feature in B&R works great to tear anything sitting there down

v.eremin
Product Manager
Posts: 16192
Liked: 1322 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Sign Out Question

Post by v.eremin » Oct 10, 2018 9:44 am

It's by design behaviour - running restore process should not be affected by RESTful API logouts. Thanks!

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest