'; $sid=session_id(); echo $sid; echo $_SESSION['address']; } else { echo 'Session is not started'; } ?> Should be '; $sid = session_id(); echo $sid; echo $_SESSION['address']; } else { echo 'Session is not started'; } ?>