After going to the Action page by clicking the webitem, the page is idle for some time and session gets timed out. And when i do any event on that page it should ask users to log in again.
I am using a Rest API to get the Confluence Pages using Application link like below.
EntityLink entityLink = entityLinkService.getPrimaryEntityLink(project, ConfluenceSpaceEntityType.class);
ApplicationLink applicationLink = entityLink.getApplicationLink();
ApplicationLinkRequest request = applicationLink.createAuthenticatedRequestFactory().createRequest(GET, apiurl);
request.execute();