HttpObjectSetCookieAttribute
Full Description
swirl
Syntax
  define function HttpObjectSetCookieAttribute
                 modifiable  stream HttpObject
     for         value       stream CookieName
     attribute   value       stream AttrName
     to          value       stream AttrValue


Purpose

This function sets a named attribute value for a cookie header in an HTTP request or response object. If a nonexistent cookie name is specified, the HTTP object will be in error. Usually, HttpObjectSetCookieAttribute is called in a server program.

Input arguments:

  • "HttpObject" -- an HTTP request or HTTP response object.
  • "CookieName" -- the name of the cookie. Note that any preceding "$" symbol should be omitted.
  • "AttrName" -- the name of the cookie attribute.
  • "AttrValue" -- the value to assign to the cookie attribute.

Example:

  ; HttpObjectSetCookieAttribute

  local HttpRequest my-Request
  local HttpResponse my-Response

  HttpObjectSetCookieAttribute my-Request
     for "DocUserID" attribute "Domain" to "www.omnimark.com"
  HttpObjectSetCookieAttribute my-Response
     for "DocUserID" attribute "Domain" to "www.omnimark.com"

Copyright © OmniMark Technologies Corporation, 1988-1998.