• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3001
  • Last Modified:

ASP.net Membership programmatically Log In?

Is there a way using ASP.Net Membership to programmatically log in instead of using the log in control?

I want Admin staff to be able to log into customer accounts without knowing their password.
0
fizzer666
Asked:
fizzer666
1 Solution
 
TSmoothCommented:
We do that very thing in our site with an "emulate user" functionality. To log in programatically just do the following:

FormsAuthentication.SetAuthCookie("username", True)

Then response.redirect to a page for the updated permissions to take effect.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now