Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.