timlondon Posted September 28, 2007 Share Posted September 28, 2007 If i use sessions how does the php mask the page url. To be more specific, if I'm employing sessions on www.whatever.com and I visit www.whatever.com/whatever.php the browser only displays the address www.whatever.com. How is this achieved if I wanted to do this without using sessions. How do I mask the address like this? Quote Link to comment https://forums.phpfreaks.com/topic/71031-sessions-related-question/ Share on other sites More sharing options...
MadTechie Posted September 28, 2007 Share Posted September 28, 2007 personally i would have a index.php, that loads the pages ie <?php switch($_GET['page']) case "1": include "page1.html"; break; case "2": include "page2.html"; break; ?> and use it like so index.php?page=1 index.php?page=2 etc another option would be via javascript/ajax Quote Link to comment https://forums.phpfreaks.com/topic/71031-sessions-related-question/#findComment-357147 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.