Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
重新定义 SQL Anywhere Web 服务器在确定是否使用会话管理时所用的内容。
NULL 或 sessionid-string
NULL
只能为 PUBLIC 设置。您必须具有 SET ANY SYSTEM OPTION 系统特权才能设置此选项。设置立即生效。
使用 webservice_sessionid_name 选项可以重新定义 Web 服务器在确定是否正在使用会话管理时所查找的内容。缺省情况下,会话标识符的名称为 SessionID。
如果 Web 应用程序不使用 SessionID 作为会话标识符名称(例如,使用 JSessionID),则此数据库选项很有用。
Web 应用程序使用基于 URL 的会话管理时,会话标识符会出现在 GET 请求中。
GET /service?JSessionID=session_63520025849921 HTTP/1.1
Web 应用程序使用基于 cookie 的会话管理时,会话标识符会出现在 Cookie 标头中。
Cookie: JSessionID=cookie_session_63520025481454
只有在 Web 服务器分析 Web 服务请求时,才会使用 webservice_sessionid_name 数据库选项指定的名称。
以下示例将 Web 服务 SessionID 重命名为 JSessionID:
SET OPTION PUBLIC.webservice_sessionid_name="JSessionID";