I know SQL security provider doesn't allow you change username, you need write query to change aspnet_users table. And after username changed, user has to log out and login again since the username is in cookie, which need to be reset.
My problem now is when I change username in aspnet_users table and then call FormsAuthentication.SignOut to sign out the current user, it will a postback to change(clear) the cookie, but since the username is changed already, the postback cannot find the user so it create an entry in aspnet_users (this happens when it tries to write something to profile table), it will not create an entry in membership table. Then user will see a login control without login box.
Is there any way to deal with this? you change username and then logout user, sounds right, but since the logout need write cookie , but username already changed, how to solve this?
thanks!
...
Go to the complete details ...