Page 1 of 1

Refresh variable in URL

Posted: Mon Apr 02, 2012 7:01 pm
by kevinb
Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: refresh

Write your message below:

Just curious as to the purpose of the refresh variable in the email links.

Ex. http://ourdomain.info/hsk/ticket.php?tr ... resh=91281

I see (by looking at sample emails) that it isn't a static response. Can you explain more about it? I don't recall reading it in the documentation and I didn't see it in a forum search. Thanks!

Re: Refresh variable in URL

Posted: Tue Apr 03, 2012 3:24 pm
by Klemen
It's quite simple - the "refresh" variable is just a random number between 10000 and 99999. It's not used for any purpose except to trick (force) the browser to refresh page and not show any cached/old information.

Yes, when a session is started PHP does send "do not cache" headers to the browser, but some browsers may ignore that headers so showing them a different URL each time does the trick because the browser treats "page.php?refresh=12345" as a different page than "page.php?refresh=54321".