TCookie class
HTTP cookie implementation
Declaration
TCookie = class(TCollectionItem)Inheritance
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
Name | public | Cookie name |
Value | public | Cookie value |
Domain | public | Cookie domain restriction |
Path | public | Path attribute of the cookie |
Expires | public | Expiration date and time of the cookie |
MaxAge | public | Maximum age of the cookie in seconds |
Secure | public | Cookie security flag |
HttpOnly | public | HTTP-only access flag |
SameSite | public | SameSite attribute of the cookie |
Partitioned | public | Partitioned attribute of the cookie |
AsString | public | String representation of the cookie |
Methods
CheckValue | protected | |
GetAsString | protected | |
Create | public | Creates a new cookie instance |
Assign | public | Assigns values from another persistent object |
Expire | public | Marks 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.
