Alex Rivera | Logout

best way redirect/reload pages in PHP

Asked 2009-10-15T12:09:28.263
11

Whats the best way to reload/redirect a page in PHP which completely removes all history/cache? Which headers should I use?

What happens:

On clicking a link, get-parameters is set and a script is executed. When finished, I want to redirect and reload the page without the get-parameters. At first, it looks like nothing has happened, but when pressing F5, the changes appear.

What I want:

Redirect and reload so the changes appear without pressing F5.

Edit
Report

1 Answer

0
header('Location: http://example.com/path/to/file');
answered 2009-10-15T12:17:24.270

Your Answer