Tech Tip: Session Command Returns Null
PRODUCT: 4D Server | VERSION: 20 R | PLATFORM: Mac & Win
Published On: October 1, 2024
When using sessions to manage connections to a server, developers may run into an issue where the Session command returns null:
There can be multiple potential causes of this. If Web sessions are being implemented then the session command may return null because "Scalable Sessions" is not selected in settings:
Another potential cause is if sessions are being implemented in client/server mode and the session command is being called on the client side. The session command only works when it is run on the server and must be implemented on the server side in order to work correclty.