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

I have created a custom link for update one field, Now I want to add time session on it.

I have created one custom site link for update field.

Now I want to add time session on it. 
Like, if the user did not click this link before 24 hours the session will expire and will be not able to update the record by the same link.

How can I do that?

this is my VF page which I am using under sites.​
  1. <apex:page standardController="Bank__c" >
  2. <apex:form >
  3.     <apex:pageBlock >
  4.         <apex:pageBlockSection >
  5.             <apex:inputField value="{!Bank__c.Response__c}"/>
  6.             <apex:inputField value="{!Bank__c.Name}"/>
  7.         </apex:pageBlockSection>
  8.         <apeX:pageBlockButtons >
  9.             <apex:commandButton value="Save" action="{!Save}"/>
  10.         </apeX:pageBlockButtons>
  11.     </apex:pageBlock>
  13. </apex:form>
  14. </apex:page>
Thanks & Regards