Last active
August 26, 2016 12:03
-
-
Save mhwelander/a95b6b5642e4be6382a7c860e5dba65c to your computer and use it in GitHub Desktop.
Identifies contact
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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