Link to this page
Print this page
Parent topic
:
Stateful services based on HTTP cookies
Stateful web services
/
Stateful services based on HTTP cookies
Server side
Perform these steps to create an HTTP cookie based stateful service.
Step 1: Declare any 4GL simple variable to be used as state variable
Step 2: Create a stateful web service with state variable as parameter
Step 3: Publish a web service operation defined as session initiator
Step 4: Create the 4GL session initiator function and instantiate a new session
Step 5: Restore the session in any 4GL web operation from the state variable
Step 6: Deployment recommendation