I have applied the authentication using the claims based indentity
var identity = new ClaimsIdentity(new[] {
new Claim(ClaimTypes.Name, userContext.ReturnObject.UserName),
new Claim(ClaimTypes.Email, userContext.ReturnObject.EmailAddress)
}, "ApplicationCookie");
Now i am trying to update the username stored in claims.
I can read the values using
var identity = (ClaimsIdentity)User.Identity;
IEnumerable<Claim> claims = identity.Claims;
but i am not able to update. please suggest.