Refresh variable in URL

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
kevinb
Posts: 6
Joined: Wed Jan 25, 2012 2:54 pm

Refresh variable in URL

Post 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!
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Refresh variable in URL

Post 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".
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply