help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Procedures and functions] Reference for unit 'pwumain' (#powtils_main)

IsCookie

Declaration

Source position: pwumain.pas line 82

function IsCookie(

  const name: String

):Boolean;

Notes

Checks whether or not the cookie (that your server has previously set) exists on the visitor's computer now.

Returns TRUE if cookie does exist, FALSE if not.

Example

begin
  SetCookie('foo', 'bar');
  if IsCookie('foo') then
    webwrite('the cookie exists');
  else
    webwrite('no cookie exists');
end.





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505