Forms Authentication and All fine except blank datavalue field
<p>I am trying to create and read a forms authentication cookie in a c# web app that I am developing.</p>

<p>I create the ticket</p>

<pre><code>FormsAuthenticationTicket authTicket = new FormsAuthenticationTicket(1, "myData", DateTime.Now, DateTime.Now.AddMinutes(60), true, "Hello");

// Now encrypt the ticket.
string encryptedTicket = FormsAuthentication.Encrypt(authTicket);

HttpCookie authCookie = new HttpCookie(FormsAuthentication.FormsCookieName,encryptedTicket);
</code></pre>

<p>// Add the cookie to the outgoing cookies collection
Response.Cookies.Add(authCookie);</p>

<p>Then when I retrieve the ticket using:</p>

<pre><code>HttpCookie authCookie = Context.Request.Cookies[cookieName];

FormsAuthenticationTicket authTicket = null;

authTicket = FormsAuthentication.Decrypt(authCookie.Value)
</code></pre>

<p>I can see authTicket now has all of the data, cookie creation date, expiration date, name="mydata"... etc.  </p>

<p>But there is nothing in the dataValue... I am expecting "Hello" to be there. </p>

<p>When I debug, I can see it is in the ticket right before encryption... it is getting lost in the decryption I suppose?  </p>

<p>Any Help?</p>
