Set cookie
// Apply cookie in the current domain and directory for 1 day. qCgiResponseSetCookie(req, "NAME", "qDecoder", 86400, NULL, NULL, false); // Apply cookie to the "/" directory of "*.qdecoder.org" until the // browser is closed. qCgiResponseSetCookie(req, name, value, 0, "/", ".qdecoder.org", false); // As for the followings, cookies will be set up only when security // requirements are satisfied. qCgiResponseSetCookie(req, name, value, 0, NULL, NULL, true); Definition at line 75 of file qCgiResponse.c.
|