se hai il register_global ad off, puoi anche settare una var a true $_SESSION['logged'] = true ;