OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Getting "Document Expired" after search results

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

Getting "Document Expired" after search results

Postby amanc » Thu Nov 28, 2013 11:25 pm

Getting "Document Expired" or "Webpage has expired" error page when browser's 'Back button' is pressed after navigating to search results. Using OJS 2.4.2. I do not see such behavior for the demo sites. Are there any OJS/PHP/Apache settings that should be changed to avoid that as it seems to be session cache issue?
amanc
 
Posts: 2
Joined: Thu Nov 28, 2013 11:06 pm

Re: Getting "Document Expired" after search results

Postby asmecher » Thu Nov 28, 2013 11:27 pm

Hi amanc,

That's normal behavior for any web page that's generated from a POST request; the demo site won't differ from your own install in that respect. Hitting Reload will cause the page to be regenerated.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8910
Joined: Wed Aug 10, 2005 12:56 pm

Re: Getting "Document Expired" after search results

Postby amanc » Thu Nov 28, 2013 11:37 pm

I could modify that by sending e.g. global PHP Cache-Control header but I do not know if it could start to affect anything else. And I wouldn't call such behaviour that normal as there're patterns like Post/Redirect/Get (PRG): http://en.wikipedia.org/wiki/Post/Redirect/Get
amanc
 
Posts: 2
Joined: Thu Nov 28, 2013 11:06 pm

Re: Getting "Document Expired" after search results

Postby asmecher » Fri Nov 29, 2013 4:32 pm

Hi amanc,

Actually, since this is a search operation that doesn't have any back-end implications beyond actually fetching the results, the easiest thing to do would be to change the form to a GET request instead of POST. On the back end, OJS folds POST and GET parameters and processes them both without distinction.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8910
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Technical Support

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 3 guests