I have problem with an array script that I created to read the URL and break it down, within the URL I also have session id.
The problem is ever since I added sessions, it would add it to the array, which of course I don't need.
I am trying to create an addition to the script to remove or ignore anything in the URL once the (?) question mark appears from the Sessions in the cast ?Session
Here is a copy of my code with an example:
URL Example with Sessions:
http://www.phpbuilder.com/members/username/?Session=XX
// break down url and create array
$URL_Array = explode ("/" , $REQUEST_URI);
$URL_one = $URL_Array[1];
$URL_two = $URL_Array[2];
$URL_three = $URL_Array[3];
$URL_four = $URL_Array[4];
with the above example I would get the following fields.
$URL_one = members
$URL_two = username
$URL_three = ?Session=XX
is there a way to have it stop once the session and anything after appears???
let me know if anyone needs any examples of my attempts at remove the session from the URL.