Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
The iFrame has content from a 3rd party app. The 3rd party app is leaded from a different domain. The user will spend most of their time outside the iframe. If the user spends most of their time in the out of the iframe the 3rd party app page session will timeout.

What possible ways are there to prevent that? Is there a way to detect and make the session alive?

Any sample code is appreciated.

Thanks
Posted

1 solution

If it is a third party App, so as per my knowledge you may not have the control over it.

So, whatever logic they have implemented, you can't change that. You can request the third party owner to provide this feature to you. But I think they are not going to do that for you only as they may be providing service to many others.

Instead you can do one thing. Just count after how much inactive time, the app's session out happens.

Suppose there session out happens after 10 minutes of inactive time.

So, on 9th inactive minute (or as per your business logic), show a alert on your site to the user saying that "The App will session out soon. Please do your task as soon as possible" something like that.

If you implement this, you are warning your user as they are inactive for a long time.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900