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

API: Session.SetUserAndUpdate

Scoped Name

APIServer.Session.SetUserAndUpdate

Interface

Field Variable ...as Description
SessionSurrogate Input Input The unique identification of the session.
UserSurrogate Input Input The unique identification of the user.

Description

Updates the session with roles and folder list based on the user information.

The most common case for using this API is if you want to build your own login functionality.

Please note that it is not allowed to change the user for a session. So if the session already has a user assigned - an error is returned.

Events

WSE0017 - Error reading site

WSE0030 - User not found (the user registered as anonymous user does not exist)

WSE0036 - Session not found

WSE0108 - No anonymous user for the session

WSE0103 - No folder list found

WSE0135 - User for session can't be updated (the session already have an assigned user).

Universal events