HttpSetResponseCookie

From Multi Theft Auto: Wiki
Revision as of 16:06, 27 October 2007 by Jbeta (talk | contribs) (New page: __NOTOC__ {{HTTP function}} This function sets the value for the specified HTTP cookie of the current HTML page. ==Syntax== <syntaxhighlight lang="lua"> bool httpSetResponseCookie ( string cookieName, str...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This function sets the value for the specified HTTP cookie of the current HTML page.

Syntax

bool httpSetResponseCookie ( string cookieName, string cookieValue )

Required Arguments

  • cookieName: the HTTP cookie whose value is being set.
  • cookieValue: the new value for the specified cookie.

Returns

Returns true if the cookie value was set successfully, false otherwise.

Example

See Also

These functions can only be used from within lua blocks in HTML pages hosted by the server