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? 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 Link to comment https://forums.phpfreaks.com/topic/71031-sessions-related-question/#findComment-357147 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.