[Zope] detect pressed refresh button in browser

Oliver Bleutgen myzope@gmx.net
Thu, 27 Jun 2002 19:38:30 +0200


Dirk Datzert wrote:
> Hi all,
> 
> is it possible to detect in Zope / Python / REQUEST variable that the refresh button in the browser was pressed ?
> 
> Regards,
> Dirk

Hi Dirk,

it seems that some more information about what you really want to do 
might be needed. E.g. do you really want to check if the refresh button 
has been pressed, or would going to the location bar and pressing enter 
meet your criteria.

If yes, how about using zope's built-in sessions?
Or send a cookie with every page which contains the path to this page. 
If a page gets a cookie with its own path, you know someone did some 
kind of "reload".

If resending of forms is an issue, this can be done with hidden form 
variables.


cheers,
oliver