Jump to content

Sessions related question


timlondon

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.