do we have any direct property in _spPageContextInfo by which we can check the form digest value is expire or not.
Issue with FormDigestValue
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Tahir AnsariRank #366 · 6.8K reputationPosted Oct 27, 2023, 9:20 AM EDT
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.