Internet Direct (Indy)
Home
PreviousUpNext
TIdNetscapeCookie.IsValidCookie Method

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

Pascal
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.

Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Website http://www.indyproject.org.
Post feedback to the Indy Documentation newsgroup.