'Declaration
Public Overloads Overridable Function CreateSession( _ ByVal userName As String, _ ByVal loginType As ClarifyLoginType _ ) As ClarifySession
public virtual ClarifySession CreateSession( string userName, ClarifyLoginType loginType )
This method will log in the session using the given username and no password.
WARNING: This method has potential security implications. If enabled, this functionality could allow users to log in as any user without knowledge of the password and perform any action on behalf of that user. This creates an audit trail problem because you cannot accurately trace which user performed which action.
IMPORTANT: First Choice has disabled this functionality by default. If you decide that you are willing to assume the risk of enabling this functionality, you must add an appSettings entry into your application configuration file with the key "fchoice.sessionPasswordRequired" with the value of "false".
The general use case for this method is if you're using your Clarify system to support another application that already provides authentication and authorization services. It is assumed that you have properly validated that the current user is authorized to log in and does not need to go through the Clarify authentication process and incur a performance delay.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family