Find your content:

Search form

You are here

Remote Actions and Session Timeout Question


We have a visualforce page that serves as a somewhat live dashboard for information in our salesforce instance. Through javascript and Javascript remoting (remote actions), we are polling salesforce for data every couple of minutes.

My question is around sessions and timeouts. Will these remote action invocations serve as "activity" and keep the session alive if there is no other user interaction on the page? I couldn't seem to find anything in the documentation that addressed this directly.

Ideally, we'd like to leave this page up all day without having the session time out.

Attribution to: Kevin O'Hara

Possible Suggestion/Solution #1

I think I got the answer that I was looking for.

Here is what I did...

  1. Set the session timeout settings to 30 minutes
  2. Launched my VF page
  3. Allowed it to run, by itself, for about an hour. During this time the Remote Actions were triggered about every minute or so.

I received no errors. I can only assume that this means that the Remote Actions triggered user activity, thus keeping my session alive.

Attribution to: Kevin O'Hara
This content is remixed from stackoverflow or stackexchange. Please visit

My Block Status

My Block Content