Skip to content

TCookies.IndexOfCookie

Returns the index of a cookie by name

Declaration

Source position: httpdefs.pp line 218

public 
function TCookies.IndexOfCookie(const AName: string) : Integer;

Description

IndexOfCookie returns the zero-based index of the cookie with the specified name. Returns -1 if no cookie with the given name is found.