afc_cgi_manager_set_cookie_expire

Name

afc_cgi_manager_set_cookie_expire  -- Set the cookies path

Synopsis

int afc_cgi_manager_set_cookie_expire ( CGIManager * cgi_manager, int days );

Description

This function sets the lifecycle of a cookie. By default, cookies are meant to be binded to the current session and expire as soon as the user closes its browser. You can make cookies last longer by setting the expire date (specified in days).

Inputs

cgi_manager

Pointer to a valid afc_cgi_manager instance.

days

How many days should the cookie last.

Result

should return AFC_ERR_NO_ERROR

See Also