Dotnetnuke UserController.UserLogin
Dotnetnuke Login through API
Imports DotNetNuke.Entities.Portals
Imports DotNetNuke.Entities.Users
Function code to login to dotnetnuke CMS
Dim currentPortal As DotNetNuke.Entities.Portals.PortalSettings
currentPortal = PortalController.GetCurrentPortalSettings()
UI = UserController.GetUserByName(0, txtUserID.Text.Trim)
UserController.UserLogin(0, UI, currentPortal.PortalName, Request.UserHostAddress, True)