ERuiz Posted January 1, 2007 Share Posted January 1, 2007 Hello all,I have a link which points to a URL and also passes a variable (ej. index.php?IDPilot=1) to the page being accessed. Is there a way to prevent the browser from displaying the URL of the page, once it loads?I simply want to be able to hide the URL, so users won't see the ?IDPilot=1 part and avoid them manually changing that value.Thanks,ERuiz Link to comment https://forums.phpfreaks.com/topic/32472-hiding-url/ Share on other sites More sharing options...
Hypnos Posted January 1, 2007 Share Posted January 1, 2007 You can use POST instead of GET. That information won't be displayed.But depending on either for anything secure is a mistake. You should consider sessions if you're doing this for security reasons. Link to comment https://forums.phpfreaks.com/topic/32472-hiding-url/#findComment-150856 Share on other sites More sharing options...
dcro2 Posted January 1, 2007 Share Posted January 1, 2007 Sorry, I'm wrong Link to comment https://forums.phpfreaks.com/topic/32472-hiding-url/#findComment-150889 Share on other sites More sharing options...
onlyican Posted January 1, 2007 Share Posted January 1, 2007 You also have Mod ReWrite, where you can hide the number in the address barChange it toID1Pilotor somethingbut I would recomment either use the POST method, or sessions Link to comment https://forums.phpfreaks.com/topic/32472-hiding-url/#findComment-150940 Share on other sites More sharing options...
corbin Posted January 1, 2007 Share Posted January 1, 2007 How is pilotid currently being set? Like what makes the user go to /?pilotid==X Link to comment https://forums.phpfreaks.com/topic/32472-hiding-url/#findComment-150948 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.