Wednesday, February 22, 2017

Visualforce - Beyond Basics Series 45 - Keep the pages alive

What is keep-alive for the page ?

For every visualforce page, there's a timout for session, after which the session expires. This is configurable under security controls in Salesforce Setup. Normally, it will be few minutes in best secured Org.


How to prevent that ?

But, practically, you might have a visualforce page which requires more time for the User to work on it. Say, if they take 30min to configure products for an opportunity, then, they were pulled for a meeting. So, when they come back after 30 min & click save, they should be disappointed to see login page & potentially losing all the effors.

To avoid such scenarios, we can use actionPollar to poll for an empty request to server, so that session will be kept alive forever.

Where is the Code ?


Any Screenshots ?



Walk through in a video ?


No comments:

Post a Comment

Thanks for reading my blog !