function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
80s#No.480s#No.4 

A visualforce page issue looks like timeout ?!

I need some help !!
I created a visualforce page and add to case feed pageLayout,
this visualforce page is for send mail. also can preview the mail ,and send Approval Processes.

■code
<apex:commandButton action="{!saveEmailDraft}" value="Preview" oncomplete="javascript:ToPriview(); return true;" id="btnPreview" reRender="pbSendEmail" />

saveEmailDraft ⇒ Save Draft
ToPriview    ⇒ Preview the mail

■question
It works well almost but sometimes not like below.
I view a case and input something in the visaulforce page,
sometimes i should confirm some informations before i send a mail (not touch the computer),
when i  come back(about 15mins or 20mins), and click a CommondButton named [Preview] 
the preview page cant show up, and all i inputed was gone. 
I exported the log, it seems that the page was refreshed when i clicked the button.
Is it a timeout issue ?
how can i solve it ?
PS: It just happend when i click button After a period of time

Any advice is appreciated
80s#No.480s#No.4
BTW
I already set Timeout value [ 2 hours ] in Session Settings, but the issue still appear.
Any help ?