»

LJ::make_cookie

LJ::make_cookie — Prepares cookie header lines.

Use

LJ::make_cookie(name, value, expires, path, domain);

Arguments

  • name. The name of the cookie.

  • value. The value to set the cookie to.

  • expires. The time (in seconds) when the cookie is supposed to expire. Set this to 0 to expire when the browser closes. Set it to undef to delete the cookie.

  • path. The directory path to bind the cookie to.

  • domain. The domain (or domains) to bind the cookie to.

Source:

cgi-bin/weblib.pl

Returns:

An array of cookie lines.