Checking if user is autheticated always results in true
<p>I am trying to check when a user is authenticated and I am always getting that the user is authenticated. Here is my code:</p>

<pre><code> if( User.Identity.IsAuthenticated )
 {
     addProfiledata();
 }
</code></pre>

<p>This condition always is true even if I log in and log out.</p>

<p>How can I correct this?</p>
