Session not created – PB Docs 2022

Session not created

When running the installable cloud application, the following
error occurs: Session not created. Please create a session using
BeginSession.

Cause:

The application is set to create sessions manually (by calling
the BeginSession function), instead
of automatically.

Solution:

You can resolve this error by either of the following
solutions:

  • Disable the “Dynamic session
    parameters
    ” option in the PowerBuilder IDE (so
    sessions are automatically created). (To disable this option,
    open the application object painter, click Additional Properties in the
    application’s Properties
    dialog; in the Application
    dialog, select the PowerServer
    tab and then select the Dynamic session
    parameters
    option and click Apply.)

    Or

  • Enable the “Dynamic session
    parameters
    ” option in the PowerBuilder IDE, and write
    scripts to call the BeginSession function in the application
    Open event. (View a code
    example here)


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