Websydian v6.1 online documentationOnline documentation - WebsydianExpress v3.0

WebsydianExpress - Callback Point


UserAfterLogin

Type

Site specific callback point implemented by the login process delivered as part of the WebsydianExpress runtime.

When is the callback point called

UserAfterLogin is called immediately after the password has been checked and the session has been updated with the user information (including roles and folder list based on the user settings).

The call is made before the site is reloaded based on the new settings.

Please note that if you have made your own custom login, this callback point will not be called - it is only an extension of the login delivered by Websydian Express.

How does the callback point influence later functionality

This is called before the site is reloaded. This means you by changing the roles and folder list assigned to the session has full control over how the site will be loaded for the user.

Errors returned in *Returned Status are disregarded by the callback point.

Example of use

If the users can belong to specific customers, you will in some instances show a design of the WebsydianExpress application that is specific for each customer. You can do this by using the API APIServer.GetBasicSessionData to retrieve the identification of the user, find the customer the user belongs to (this information will often be stored in another system) - and use the API APIServer.Session.SetFolderList to specify the customer related folder list for the user.

Based on which customer the user belongs to, you might also want to assign additional authority to the user, you can do this by using the API Session.AddRole.

Abstract callback function

Inherit from Callback.WebServer.UserAfterLogin.AbstractCallbackFunction to create a callback function that can be called by this callback point.

CallbackInput

This local variable contains:

This field will be populated automatically by the callback function. Use the value of the field as you would use a normal input field.