Re: manual vs. meta refresh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/10/07, Kevin Murphy <murphy63@xxxxxxxx> wrote:
> I doubt this, but is there any way to determine via PHP if a browser
> was refreshed automatically via a META tag vs the person clicking the
> refresh button?
>
> --
> Kevin Murphy

Normally not, unless you add an extra GET item to the META tag, for example:
<meta http-equiv="refresh"
content="1;http://www.domain.com/dir/site.php?foo=bar&meta_refresh=yes";>

But this would only work once, as you get redirected to there.
You can add a counter if you want, and keep track of the number of
times it has been redirected to META, in comparison to the one before.

<meta http-equiv="refresh"
content="1;http://www.domain.com/dir/site.php?foo=bar&meta_refresh=1";>
and when the new page load, check whether the value is the same as the
previous page load (user has uses refresh), or it is +1 (redirected
through META)

Tijnema

-- 
Vote for PHP Color Coding in Gmail! -> http://gpcc.tijnema.info

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux