+ Start a Discussion

Visualforce page QueryLocator is invalid Error


I am getting following error for QueryLocator "This page uses a QueryLocator that is invalid.There is a limit of 5 QueryLocators per user".

The error comes when i leave page idle for 10-15 minutes.

Can anyone give me idea on how to resolve this issue ?

I am using StandardSetController for pagination.


QueryLocator cursors expire after 15 minutes of inactivity. This is in the docs.


Is there any way we can refresh the queryLocator automatically when it expires.