HttpObjectSetCookieValue
Full Description
swirl
Syntax
  define function HttpObjectSetCookieValue
              modifiable  stream HttpObject
     for      value       stream CookieName
     to       value       stream CookieValue


Purpose

This function sets a named cookie value in an HTTP request or response object. Usually, HttpObjectSetCookieValue is called in a server program.

Input arguments:

  • "HttpObject" -- an HTTP request or HTTP response object.
  • "CookieName" -- the name of the cookie.
  • "CookieValue" -- the value to assign to the cookie.

Example:

  ; HttpObjectSetCookieValue

  local HttpRequest my-Request
  local HttpResponse my-Response

  HttpObjectSetCookieValue my-Request for "DocUserID" to "123abc456"
  HttpObjectSetCookieValue my-Response for "DocUserID" to "123abc456"

Copyright © OmniMark Technologies Corporation, 1988-1998.