/
SESSION OBJECTS

SESSION OBJECTS

SESSION

Represents an active connection of a user that performed a valid login in the platform.

A session can expire automatically depending on the configuration of the platform (see WEB SERVICES CONFIGURATION )

THE FIRST WS METHOD

SESSION WS VARIABLES

VARIABLE

Description

VARIABLE

Description

SESSION_TOKEN

Is the secret token encrypted once the user is logged. Is the main user-object used in all WS functions. The secret token expires when the user is logged again.

ACTIVE_TEAM

Used only when the active user is a PROFESSIONAL.

Indicates which is the TEAM used as context of the PROFESSIONAL in the session. It affects the list of accesible SUBSCRIPTIONS and patients.

Remember that a professional can be member of several TEAMS. This property permits to focus only in the activities and patients related with this TEAM.

ACTIVE_ROLE

Is the active role of the user in the active team

LANGUAGE

Is the active language ( from a list of languages)

TIMEZONE

Timezone of the user. The Linkcare platform allows to work from different timezones, and all the date related information is adjusted to the timezone of the active session.

COUNTRY

Country of the active user. It is used in some country related operations, such as inferring the default international phone prefix when sending SMS communications.

SESSION_PREFERENCES

There are two functions in order to store/retrieve information from a user. This preferences are stored in the SESSION. The two WS are user_get_preference/user_set_preference. For example "form_merge" is a user preference that allows the system to show all forms merged in the tasks.

Related content