if(!isset($_SESSION['SessData'])) {
session_name('sess1');
session_start();
echo '----- In IF Condition -----';
print_r($_SESSION['SessData']['Tracker']['Source']);
}
else {
echo '----- In ELSE Condition -----';
print_r($_SESSION['SessData']['Tracker']['Source']);
}
When executing the code its only going in the IF condition and not the else condition. Whats the reason behind it?