lional Posted November 19, 2006 Share Posted November 19, 2006 Hi allI am trying to redirect but I do not want the address to be visible in the address bar. The user must not be able to see the address in any way. is it possibe, please see code below<? if ($username_out == $un && $password_out == $pw && $chapt_out == $ch && $lev < 5) { header ("Location: annual_return.php?source=1"); } else { header ("Location: index_failure.php"); } }?>Any help will be appreciatedThanksLional Link to comment https://forums.phpfreaks.com/topic/27768-hiding-info-when-sending-header-information/ Share on other sites More sharing options...
Orio Posted November 19, 2006 Share Posted November 19, 2006 What do you mean? You want annual_return.php not be seen in the URL?Orio. Link to comment https://forums.phpfreaks.com/topic/27768-hiding-info-when-sending-header-information/#findComment-127049 Share on other sites More sharing options...
lional Posted November 19, 2006 Author Share Posted November 19, 2006 YesI am writing a web app and I do not want users going directly to the page by typing in the entire url, this way they will bypass the logging in phaseThanksLional Link to comment https://forums.phpfreaks.com/topic/27768-hiding-info-when-sending-header-information/#findComment-127050 Share on other sites More sharing options...
kenrbnsn Posted November 19, 2006 Share Posted November 19, 2006 If you don't want users seeing pages before they are logged in, you need to check the logged in status when a user gets to a page. If they are not logged in, redirect them to your login page.Ken Link to comment https://forums.phpfreaks.com/topic/27768-hiding-info-when-sending-header-information/#findComment-127053 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.