Tuesday, November 22, 2011

EPiMail user synchronization

Today I had some problems with synchronization of users from standard sqlmembership provider to the EPiMail user database.

EPiMail has its own tables with users and roles, and when you make a request to your site it synchronizes the user and its current roles to the EPiMail user database.

When I added new roles for my user today I noticed that the user roles wasn’t synchronized to the EPiMail database. After reading the documentation (reflection) I noticed that each time a synchronize is done, EPiMail saves a cookie that says that the user is synchronized. As long as the cookie is there it will not synchronize the user again. After deleting the cookie the users roles where updated. A good thing to know if you wonder why your user changes doesnt replicate to the EPiMail database.