robert_gsfame Posted April 30, 2010 Share Posted April 30, 2010 Assume i redirect the page from a.php to b.php using header("Location:b.php?name=xxxx&age=xx"); then again in b.php i redirect to a.php user still could see the "b.php?name=xxxx&age=xx" as it will be saved as browser history.. can i erase this so once b.php being redirected to a.php, the history of b.php erased.. I just want to protect the information which are passed through url name=xxxx&age=xx Quote Link to comment https://forums.phpfreaks.com/topic/200244-erase-history/ Share on other sites More sharing options...
mikesta707 Posted April 30, 2010 Share Posted April 30, 2010 If you are asking if PHP can delete the history information that a browser collects? then no. Perhaps you should rethink your strategy for security Quote Link to comment https://forums.phpfreaks.com/topic/200244-erase-history/#findComment-1050865 Share on other sites More sharing options...
andrewgauger Posted April 30, 2010 Share Posted April 30, 2010 You can include(b.php) inside of a.php and then you won't have to worry about the redirect in the browser. Your inlcude files can access the parent script's variables: http://php.net/manual/en/language.variables.scope.php Quote Link to comment https://forums.phpfreaks.com/topic/200244-erase-history/#findComment-1050867 Share on other sites More sharing options...
ChemicalBliss Posted April 30, 2010 Share Posted April 30, 2010 Also i would suggest using POST variables. GET variables use up valuable url space. -cb- Quote Link to comment https://forums.phpfreaks.com/topic/200244-erase-history/#findComment-1050880 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.