You're missing quotes around your array key defining it as a string. Without it PHP assumes you mean a constant named title
. But you don't have a constant defined with that name which is why you see that error:
$_SESSION[title] = 'PHP100.com';
echo $_SESSION[title];
should be:
$_SESSION['title'] = 'PHP100.com';
echo $_SESSION['title'];