Topic Path: Symbol Reference > Classes > TIdServerCookie Class > TIdServerCookie Methods > AddAttribute Method
ContentsIndexHome
PreviousUpNext
TIdServerCookie.AddAttribute Method

Sets the Path or Domain for a server cookie.

procedure AddAttribute(
    const Attribute: String; 
    const Value: String
);
Parameters 
Description 
Attribute 
Cookie attribute name.
 
Value 
Cookie attribute value. 

AddAttribute is a procedure AddAttribute used to to set the '$PATH' and '$DOMAIN' attributes for the server cookie. 

Attribute is the Cookie attribute name, and can contains the values '$PATH' and '$DOMAIN' (in upper-, lower-, or mixed-case). All other Attribute names are ignored. 

Value is the content for the named attribute to be set for the server cookie. 

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.