Displaying the last session variable when refreshing the page
<p>I usually have problems with sessions.</p>

<p>My problem is that: If I have a have a session variable that stores the typed email address </p>

<pre><code>$_SESSION['email']=$_POST['myemail'];
</code></pre>

<p>and then I want my page to display the entered email in the welcome page when the user clicks on login</p>

<pre><code>echo '".$_SESSION['email']."';
</code></pre>

<p>my code works fine but when user2 logged in and user1 refreshed the page, the page displays Welcome user2 because the last session variable stores user2's email.</p>

<p>I am so sorry for this easy question but I am still learning PHP.</p>
