Powerserver 2022 (i assume PS 2021 has the same problem?)
"If an installable cloud application is closed by the halt {CLOSE} method, the session occupied by an installable cloud app cannot be released properly. You will have to restart PowerServer to release the user sessions."
Are there any workarounds for this bug in powerserver? restarting powerserver is not a reasonable workaround.
It seems to me that if i do a halt close that should still run the close event in powerserver. Then in the close event, can't i simply call the KILL session api to kill my own session? Would that work (clear out the user session)? I would not want any error message about the session being killed since the kill session would be the last thing to run
Also, i always do a halt close in my application close event. When i close my powserver app, the session is removed immediately even though halt close is called in the application close event. So the halt close itself didn't keep the session around.
I would think this is something that is fairly high priority as this bug directly benefits appeon (forces more sessions to be purchased), and so it makes appeon not look good. so maybe it was already fixed?
A session starts when the user sends a request to load the application and ends 1) if the user closes the application (e.g.: Halt, Halt Close, or Exception) or 2) has not sent any requests to the server during the "session timeout" period.
Your Session timeout setting can only take effect if a user doesn't do any database-related operations during 3600s by default.
Regards, Logan