Forms Authentication - Add additional data in cookie

Hi,

By authenticating member to a umbraco site, SetAuthCookie must be used in order to do this:

FormsAuthentication.SetAuthCookie(username, false)

By going back the member to the site, this cookie will be read and will be used for Authentication procedure in order to be authenticated as a member of umbraco site.

Is there any way please to add more data in that authentication cookie, for example email:

FormsAuthentication.SetAuthCookie(username + “|” + email, false)

but not to break authentication way of umbraco that the member be authenticated and authorized to umbraco as a member, and how to do that?

Cheers


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/78969-forms-authentication-add-additional-data-in-cookie