how to display the number 1 each time user accesses the page
<p>I have a problem when it comes to displaying the correct number in my heading. When a user submits a page and navigates to this current page, I want the heading below to appear:</p>

<p>CREATING QUESTIONS AND ANSWERS: SESSION (AAA) 1 OF  3</p>

<p>As you can see it above it starts with the number 1 as the user is creating their first session. The problem I am getting is that it never displays number 1, it just keeps displaying this below:</p>

<p>CREATING QUESTIONS AND ANSWERS: SESSION (AAA) 3 OF  3</p>

<p>It keeps displaying the number 3 which is incorrect as if the user enters the current page for the first time then obviousl they don't start with session 3, they start with session 1, then 2 then 3.</p>

<p>So my question is how do I get "SESSION 1" to be displayed when the useer enters the page for the first time?</p>

<p>Below is the current code I have:</p>

<pre><code>  if(isset($_POST['sessionNum'])){
                //Declare my counter for the first time

                $_SESSION['initial_count'] = $_POST['sessionNum'];
                $_SESSION['sessionNum'] = $_POST['sessionNum'];

        }

    if (!isset($_SESSION['sessionCount'])) {
        $_SESSION['sessionCount'] = 1;
    }
    else if ($_SESSION['sessionCount'] &lt; $_SESSION['sessionNum']) {
        ++$_SESSION['sessionCount'];
    }


    $sessionMinus =  $_SESSION['sessionCount'];

...

    &lt;h1&gt;CREATING QUESTIONS AND ANSWERS: SESSION (&lt;?php echo $_SESSION['id'] ?&gt;) &lt;?php echo $sessionMinus ?&gt; OF &lt;?php echo $_SESSION['initial_count'] ?&gt;&lt;/h1&gt;
</code></pre>
