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

SQL Anywhere 17 » SQL Anywhere Server - Database Administration » Database configuration » Database options » Alphabetical list of database options

webservice_sessionid_name option

Redefines what the web server uses to determine whether session management is used.

Allowed values

NULL or sessionid-string

Default

SessionID

Scope
  PUBLIC role For current user For other users
Allowed to set permanently? Yes, with SET ANY SYSTEM OPTION No No
Allowed to set temporarily? Yes, with SET ANY SYSTEM OPTION No No
Remarks

The webservice_sessionid_name option allows you to redefine what the web server looks for to determine whether session management is being used. By default, the session identifier name is SessionID.

This database option is useful if your web application uses a name other than SessionID for the session identifier name, for example JSessionID.

When the web application uses URL-based session management, then the session identifier appears in the GET request:

GET /service?JSessionID=session_63520025849921 HTTP/1.1

When the web application uses cookie-based session management, the session identifier appears in the Cookie header.

Cookie: JSessionID=cookie_session_63520025481454

The name specified by the webservice_sessionid_name database option is only used when the web server analyzes web service requests.

Example

  • The following example renames the web service SessionID to JSessionID:

    SET OPTION PUBLIC.webservice_sessionid_name="JSessionID";