Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

BeginSession – PB Docs 2021 – PowerBuilder Library

BeginSession – PB Docs 2021

BeginSession

Description

Creates a session.

Applies to

Application
object

Syntax

Argument

Description

applicationname

The name of the application object for which you want to
create a session

Usage

Normally there is no need to call this function to create a session,
because the session is automatically created when the application starts.
You may want to execute this function to create a session, only when you
have obtained the access token and you want the session to include the
access token.

In order to execute this function successfully, the “Begin session
by code” option must be selected in the Application painter’s Properties
view so that the session will not be created automatically, otherwise,
this function will return -1 (indicating the session has already been
created).

Return value

Integer.

Returns 0 if it succeeds and -1 if session already exists or if the
current application is not an installable cloud app deployed with
PowerServer.

Returns one of the following numbers if an error occurs:

  • 220 — General session error.

  • 222 — Cannot connect with the server when creating the
    session.

  • 230 — License errors.

  • 240 — Unauthorized.

Examples

See also

GetHttpResponseHeaders

GetHttpResponseStatusCode

GetHttpResponseStatusText

SetHttpRequestHeader


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x