do we have any direct property in _spPageContextInfo by which we can check the form digest value is expire or not.
Loading
do we have any direct property in _spPageContextInfo by which we can check the form digest value is expire or not.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Tahir AnsariPosted Oct 27, 2023, 1:20 PM
there is no direct property in the
_spPageContextInfoobject that allows you to check if the form digest value has expired. The_spPageContextInfoobject mainly provides information about the current page and context, but it doesn't include details about the state of the form digest.To check if the form digest value has expired, you typically need to make a request to the server and handle any errors that occur when the form digest has expired. The form digest is usually tied to a specific session or page load, and it's generated and included in the page to help prevent cross-site request forgery (CSRF) attacks.