Logs a Validated User in
Namespace: DotNetNuke.Entities.UsersAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
| C# |
|---|
public static void UserLogin( int portalId, UserInfo user, string portalName, string ip, bool createPersistentCookie ) |
| Visual Basic |
|---|
Public Shared Sub UserLogin ( portalId As Integer, user As UserInfo, portalName As String, ip As String, createPersistentCookie As Boolean ) |
Parameters
- portalId
- Type: System..::..Int32
The Id of the Portal the user belongs to
- user
- Type: DotNetNuke.Entities.Users..::..UserInfo
The validated User
- portalName
- Type: System..::..String
The name of the Portal
- ip
- Type: System..::..String
The IP Address of the user attempting to log in
- createPersistentCookie
- Type: System..::..Boolean
A flag that indicates whether the login credentials should be persisted.