yay sumthing i can at least help with im pretty sure your code should look like this.
<?php
session_start();
header('Cache-control: private');
/* internet explorer 6 fix otherwise sessions can get all screwed up.*/
if(!isset($_SESSION['user_memberid'])){
$memb = $_SESSION['user_memberid'];
echo "Ashay".$memb;
}
?>
be aware your saying if $SESSION['user_memberid'] is not set the variable $memb = $SESSION['user_memberid'] which means if its not set your assigning an empty value to $memb its the same as sayin $memb = FALSE;
now if you want $_SESSION['user_memberid'] to be $memb thus registering the session you will use:
$_SESSION['user_memberid'] = $memb
because:
$_SESSION['user_memberid'] = $memb
and
$memb = $_SESSION['user_memberid']
are two different things.
tell me if im wropng i think thats it so if you want to register the session you will use this:
<?php
session_start();
header('Cache-control: private'); //ie6 fix
if(!isset($_SESSION['user_memberid'])){
$_SESSION['user_memberid'] = $memb
echo "Ashay".$memb;
}
well i thionk thats it but this also rely's on the fact $memb is set.