cgi_cookie_authority(3)

✨ NAME ✨

okay bestie, welcome to the manual for cgi_cookie_authority(3) from cgi/cgi.h πŸ’–

cgi_cookie_authority β€” determine the cookie authority for a domain. no cap, that's the whole vibe.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <cgi/cgi.h>

char *cgi_cookie_authority (CGI *cgi, const char *host);

🌸 ARGUMENTS 🌸

  • cgi β€” a CGI struct. iconic, necessary, we love her.
  • host β€” optional host to match against. if NULL, the function will use the HTTP.Host HDF variable. so like, if you don't hand it a host, it goes and checks HTTP.Host for you 🫢

πŸ’– DESCRIPTION πŸ’–

so cgi_cookie_authority will walk the CookieAuthority portion of the CGI HDF data set, and return the matching domain if it exists. that's the main character move.

the purpose of this is so that you set domain specific cookies. fr fr.

for instance, you might have CookieAuthority.0 = neotonic.com β€” in which case, any webserver using a hostname ending in neotonic.com will generate a cookie authority of neotonic.com. periodt.


⭐ RETURN VALUE ⭐

None.

literally none. zero. nada. the function does not hand you a return value in the usual sense, bestie 😭


πŸ”₯ SEE ALSO πŸ”₯


ClearSilver, 12 July 2007, cgi_cookie_authority(3) β€” slay, bye bestie πŸ’…βœ¨