Posted on 22/07/2016 11:07:52
Hi Antonio.
Well, if it where me, I'd add some javascript code to the "Start impersonation" and "End impersonation" templates, that saves impersonation information in a cookie.
Then I'd add some javascript code to the main template that checks if an impersonation session is currently active in dynamicweb (Via the tags about primary and secondary user ids), and if not, check if a cookie exists to indicate an impersonation session should be active. In that case, I would do a reload, re-initializing the impersonation session, the same way it is currently done in the "start impersonation" template.
I would basically look at the global tags : Global:Extranet.UserID and Global:Extranet.SecondaryUser.UserID All the time, to check if they have the expected values, and to activate impersonation if they don't
Hope this helps :-)
Regards, Jonas