Erlang Programming/Creating Web Applications with yaws/Yaws API

Cookies edit

Cookies are stored as part of the header data in the Arg data struture, the (Request#arg.headers)#headers.cookie list contains the cookies(TODO: describe the format). The cookies can either be accessed directly or using a set of help function included with the Yaws API.

TODO: Describe,
new_cookie_session(Opaque)
new_cookie_session(Opaque, TTL)
new_cookie_session(Opaque, TTL, CleanupPid)
cookieval_to_opaque(CookieVal)
print_cookie_sessions()
replace_cookie_session(Cookie, NewOpaque)
delete_cookie_session(Cookie)