none
Create Users issue in asp.net membership provider RRS feed

  • Question

  • Hi,

    We have an application which has an admin panel where admin user with admin role can create users with a different role.Once user is created an email is sent to the user with login details.

    We are experiencing an issue here. In our application only an admin user can create users. Hence only this role is authorized to view the admin page.

    Once an admin creates a user using the RegisterUser control of Membership provider, after registration the membership user is replaced by the newly created user account.

    As the newly created user does not have access to admin page, soon after register the application is automatically redirected to login page.

    But since the logged in user is admin he should remain in admin page even after registering new user. 

    Can anyone please advise on what has to be done to overcome this issue?

    Thanks in advance.

    Ramya

    Friday, February 1, 2013 6:54 AM