Change the Current User in a way which does not lose all cached information such as global collections and permissions.

<para> To use this method, the business layer must have been initialised using the AllowQuickLogin flag and a Database must currently be open. </para> <para> Note that certain checks that are performed when opening a Database are not checked here since they are part of the Database opening process. </para>

Syntax

ISfinSupport.CurrentUserQuickLoginFromToken(token, passwordToken, [mustHaveWebAccess], [refreshBusinessLayerState])

Parameters

NameTypeOptionalByRefDescription
token String An access Token created via the Database.CreateToken() method.
passwordToken String ByRef The generated password token that can then be used as the 'password' parameter for the CurrentUserQuickLogin method for future logins.
mustHaveWebAccess Boolean Optional Ensure that this User has Web Access. If omitted, a value of False is assumed.
refreshBusinessLayerState Boolean Optional Indicates whether to refresh business layer state such as global collections that may have changed. A refresh will only occur if the collection has changes hence the overhead of setting this to True is low. If omitted, a value of True is assumed.

Return Value

Boolean

A Boolean value indicating success.

Member of:
ISfinSupport
Namespace:
Intersoft.finSupport6
Assembly:
finSupport6, Version=6.0.3
Target Framework:
.NET 9.0