Sign in Join
FPDoc Onlineexperiment

TCookie class

In unit HTTPDefs

HTTP cookie implementation

Declaration

pascal
TCookie = class(TCollectionItem)

Inheritance

  1. TCookie
  2. TCollectionItem
  3. TPersistent
  4. TObject

Description

TCookie represents an HTTP cookie with all its attributes. It provides properties for name, value, domain, path, expiration, security settings, and other cookie attributes.

See also

Properties

NamepublicCookie name
ValuepublicCookie value
DomainpublicCookie domain restriction
PathpublicPath attribute of the cookie
ExpirespublicExpiration date and time of the cookie
MaxAgepublicMaximum age of the cookie in seconds
SecurepublicCookie security flag
HttpOnlypublicHTTP-only access flag
SameSitepublicSameSite attribute of the cookie
PartitionedpublicPartitioned attribute of the cookie
AsStringpublicString representation of the cookie

Methods

CheckValueprotected
GetAsStringprotected
CreatepublicCreates a new cookie instance
AssignpublicAssigns values from another persistent object
ExpirepublicMarks the cookie as expired

Inherited

From TCollectionItem (12)

Changed Collection Destroy DisplayName GetDisplayName GetNamePath GetOwner ID Index SetCollection SetDisplayName SetIndex

From TPersistent (5)

AssignTo DefineProperties FPOAttachObserver FPODetachObserver FPONotifyObservers

From TObject (40)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.