Fixing the "The security validation of this page has timed out" error in SharePoint 2010.

Ever faced the annoying “The security validation of this page has timed out” error in SharePoint 2010? I believe, if you guys have ever used the following tag in a Custom SharePoint Application Page and were trying to validate the Form Digest token on the server for POST requests initiated using JavaScript, you might have…