Topic Path: Symbol Reference > Classes > TIdNetscapeCookie Class > TIdNetscapeCookie Methods > IsValidCookie Method
ContentsIndexHome
PreviousUpNext
TIdNetscapeCookie.IsValidCookie Method

Indicates if the Domain for the Cookie matches the host server for the request.

function IsValidCookie(
    AServerHost: String
): Boolean; virtual;
Parameters 
Description 
AServerHost 
Host server receiving the request. 

Boolean - True when the host server matches Domain.

IsValidCookie is a Boolean function that indicates if the Domain for the Cookie matches the host server that received the request and state information. 

AServerHost is the server that received the request containing the persistent state information in the Cookie. 

The return value is True when AServerHost contains an IP address or host name that matches the Domain for the Cookie. 

Use Path to determine the subset of URLs where the Cookie is valid.

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