note 119641 deleted from reserved.variables.session by cmb

From: Date: Sat, 23 Jul 2016 17:41:05 +0000
Subject: note 119641 deleted from reserved.variables.session by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-206087@lists.php.net to get a copy of this message
Note Submitter: Soaku ---- You can check if the session has been already created on previous page by this simple way, even if you have older php than 5.4.0, where session_status() was added. session_start if ($_SESSION['exists']) { echo "<!--Session exists-->"; } else { echo "<!--Session doesn't exist-->"; $_SESSION['exists'] = 1; }

« previous php.notes (#206087) next »