title: Xpages - Page loosing context (weird behaviour)
body: <p>I have a strange issue. I have created something like XControl application where in you can preview your documents (but using Managed beans). Now there is an edit link which opens the document in edit mode in XPage in a dialog. This page shows different buttons based on user role and document status.
  Now, I preview a document and keep that window idle for sometime. When click on edit link, document opens fine in edit mode but buttons are not rendered properly. Seemingly it forgets the user role. I think this must got something to do with "Keep current page in memory" setting. I am going to try out the "Keep pages on disk" setting but any idea or anyone faced similar issue?</p>