Unit 'HTTPDefs' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TCookies.CookieByName

Finds a cookie by name

Declaration

Source position: httpdefs.pp line 208

public function TCookies.CookieByName(

  const AName: string

):TCookie;

Arguments

AName

  

Name of the cookie to find

Function result

Cookie with the specified name or nil if not found

Description

CookieByName searches for and returns a cookie with the specified name. If no cookie is found, it returns nil.

See also

FindCookie

  

Finds a cookie by name

IndexOfCookie

  

Returns the index of a cookie by name


Documentation generated on: Jan 16 2026