Deleting/Changing Web login for a logged in user

Hi,

In our environment, we will user an individual's email address as their weblogin.

If user changes there email address, we need to update their web login to be their new email address.

I did some searching and found this post.

http://www.imiscommunity.com/mass_update_of_user_logins#comment-12387

I  tested as follows:-

1. Logged in a end-user to iMIS hosted website.

2. Deleted user's web credentials.

3. Created user's new web credentials.

4. As end-user, I clicked on link within iMIS hosted website and got below error.

Server Error in '/' Application.
Service Error:

An error has occurred while consuming this service. Please contact your administrator for more information. Error ID: 4389e2d6-e963-4613-b1e2-2133ba7ec710
Timestamp: 25/06/2012 1:34:48 PM
Message Id: 4389e2d6-e963-4613-b1e2-2133ba7ec710
An exception of type 'UserValidationException' occurred
Type: UserValidationException
Message: Validation Failed
Source: Asi

I'm assuming if user had of logged out, this error wouldn't have occured but that obviously isn't a workaround for this issue (as we want users to update their email address online and for it to trigger off a change in ther web login, so the end-user will always be logged in).

How have others who user an email address as their weblogin method for users handled this situation?

Thanks,

Scott

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

update the authentication cookie with the new username

You may be able to update the authentication cookie after the needed tables. 

FormsAuthentication.SetAuthCookie(NewUserName, False)