I am makeing a site that will be able to handle several diffrent venders selling off my site.
A vender can use....
vender.mysite.com
www.mysite.com?dis=vender
www.vender.com
www.vender.com would be pointing to my DNS servers and hosted by me.
when I test the codeing i'm useing everything started out fine and it opend the correct vender information.
However after one to 20 refreshes it is forgetting who the vender is. I'm storeing the information as session varibles.
this is the index page....
<?
session_start();
$navstyle='home';
include('primary.php');
?>
this is the part of primary.php that is causeing me the problem..
$dis=$_SESSION['dis'];
$shopinfotype=$_SESSION['shopinfotype'];
$cat=$_SESSION['cat'];
echo 'dis=' . $dis;
.......
.......
.......
if(empty($dis)){//two
$dis=getDomain($dis);
}
echo 'dis=' . $dis;
..........
..........
........
$_SESSION['dis']=$dis;
$_SESSION['shopinfotype']=$shopinfotype;
$_SESSION['cat']=$cat;
echo $_SESSION['dis'];
?>
I have it echo $dis three times in the code... the first one (that should have the info from session) is at times blank now.
any suggestions?