Internet Direct (Indy) Version 9.0.2 Beta
TIdServerCookie.AddAttribute
Maintains attribute names and values for the Server Cookie.

procedure AddAttribute(const Attribute: String; const Value: String);
Parameters
const Attribute: String
Cookie attribute name to be updated.

const Value: String
Cookie attribute value to be updated.

Description
AddAttribute is a procedure that allows the server Cookie to correctly maintain Path and Domain properties based on Cookie headers received in an HTTP client request.

AddAttribute checks the Cookie attribute named in Value for the presense of the special Value '$PATH' or '$DOMAIN'. When Attribute contains either of these special Cookie headers, the data in Value is assigned to the corresponding Path or Domain property.