Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Anywhere Server - Programming » HTTP web services » SQL Anywhere as an HTTP web server » How to develop web service applications in an HTTP web server » HTTP session management on an HTTP server


How to create an HTTP session

Sessions can be created using the SessionID option in the sa_set_http_option system procedure. The session ID can be defined by any non-null string.

Session state management is supported by URLs and cookies. HTTP sessions can be accessed using HTTP cookies, or through the URL of a GET request or from within the body of a POST (x-www-form-urlencoded) request. For example, the following URL utilizes the XYZ database connection when it executes:


The request is processed as a standard session-less request if an XYZ database connection does not exist.

 See also

How to use the URL to manage a session
How to use cookies to manage a session