Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Set to 1 to mark this as a new cookie "session".

Component Version macOS Windows Linux Server iOS SDK
CURL 2.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "CURL.SetOptionCookieSession"; curl; Value )   More


Parameter Description Example
curl The CURL session handle. $curl
Value Whether this is a new cookie session. 1


Returns "OK" on success.


Set to 1 to mark this as a new cookie "session".
It will force libcurl to ignore all cookies it is about to load that are "session cookies" from the previous session. By default, libcurl always stores and loads all cookies, independent if they are session cookies or not. Session cookies are cookies without expiry date and they are meant to be alive and existing for this "session" only.

See also COOKIESESSION option in CURL manual.

See also

Blog Entries

Created 18th August 2014, last changed 18th August 2014

CURL.SetOptionCookieList - CURL.SetOptionCustomRequest