wintallo Posted April 19, 2008 Share Posted April 19, 2008 Hey, I have a simple question. Will this line of code pose as a security threat? The reason I ask this is because I know people can spoof their referrer. header("Location: ".$_SERVER['HTTP_REFERER']); Thanks! Quote Link to comment Share on other sites More sharing options...
discomatt Posted April 19, 2008 Share Posted April 19, 2008 That's a bad way to return to last page viewed. A better way is to set the current page as a session var at the bottom of all your scripts. That way, the variable will contain teh previous page the use was on until you redefine it to the current page Quote Link to comment 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.