I am working on web application(in php),where i require to redirect url with some parameter.I have written a code like this
header("Location:http://www.xyz.com?code=2345");
This will redirect to corresponding url but the my data is visible in the browser,i don’t want my data to be visible in the browser.how to hide the data? Is this the secure way of redirection? What is the best way of redirection?
It’s possible to redirect
POSTfields that have been sent to the current request (by redirecting with a307), but to create them artificially is tricky and depends on if the user has javascript enabled. I use this function, but you shouldn’t depend on it working if the user disables javascript.