Programmatically re-login to Epicor when session is expired

This sounds promising… But as I said no expert in this aspect of things. I think I have done a session impersonation once in code

or this