Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mhwelander
Last active August 26, 2016 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhwelander/a95b6b5642e4be6382a7c860e5dba65c to your computer and use it in GitHub Desktop.
Save mhwelander/a95b6b5642e4be6382a7c860e5dba65c to your computer and use it in GitHub Desktop.
Identifies contact
[HttpPost]
public ActionResult LoginUser(string username)
{
if (Tracker.Current != null &&
Tracker.IsActive == true)
{
Tracker.Current.Session.Identify(username);
}
// The user is also logged in using normal ASP.NET membership; this is a completely separate process from identifying
// a contact with the xDB
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment