c# - Changing HttpContext.Current.User.Identity.Name after User is logged in -


i'm working on asp mvc application. , wondering if there way of changing httpcontext.current.user.identity.name once user has logged in.

i want able allow user change his/her username, , need httpcontext.current.user.identity.name changed once have done that.

any great

i believe can not this:)

it filled during authentication. simpliest solution when user changes username - log him out, , ask login.

update

it work custom provider. if using standard one, believe can't changed @ all.

as alternative solution can try next: when user tries change name: 1. create new user 2. abandon session 3. remove old user 4. change data related user new account 5. log him in once again new user.


Comments