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
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

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: 10015
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: 10015
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Technical Support

Who is online

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