This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.
Tries to perform a forms-based login.
If logon fails, a SecurityException error is thrown.

Namespace: Smartsite.Runtime.Modules
Assembly:  Smartsite.Runtime.Modules (in Smartsite.Runtime.Modules.dll)

Syntax

C#Copy imageCopy Code
[]
public static void TryLogin(
	 context,
	string userName,
	string password,
	bool isHashed,
	bool persistentCookie
)
Visual Basic (Declaration)Copy imageCopy Code
<> _
Public Shared Sub TryLogin ( _
	context As , _
	userName As , _
	password As , _
	isHashed As , _
	persistentCookie As  _
)

Parameters

context
IRenderContext
The context.
userName
String
Name of the user.
password
String
The password.
isHashed
Boolean
if set to true [is hashed].
persistentCookie
Boolean
if set to true, a persistent cookie will be written.

See Also

Advanced