I created a clientside application for SharePoint using javascript and jquery. We use Rest API for CURD operation on SharePoint Data and config Idle Session Timeout for the inactive user. After a user session expired all rest request, return Access denied Error:
Access denied. You do not have permission to perform this action or access this resource.
How to determine user logged in and session not expired (before sending rest request and reloading page) only using javascript and jquery? Is FedAuth cookie useful for this problem and how?