Step 6: Deployment recommendation

When deploying stateful web services based on HTTP cookies, the complete server path will be added into the cookie when first instantiated, so you must pay attention to that URL. In other words, you MUST always call the service via the complete URL containing the service name inside. For instance if your service is named MyService and if you GAS configuration file is called Server.xcf, the stateful service is accessible at URL: http://localhost:6394/ws/r/group/Server/MyService.