CURL.SetOptionSSLSessionIDCache
-------------------------------

Controls SSL session-ID caching.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CURL](component_CURL.md) | [2.5](newinversion25.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "CURL.SetOptionSSLSessionIDCache"; curl; Value ) 

**MBS**( **"CURL.SetOptionSSLSessionIDCache";** /\* Controls SSL session-ID caching. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Value**) /\* Whether to cache session IDs.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| Value | Whether to cache session IDs. | 1 |

### Result

Returns "OK" on success.

### Description

Controls SSL session-ID caching.   
Set to 0 to disable cache. Set this to 1 to enable it. By default all transfers are done using the cache. While nothing ever should get hurt by attempting to reuse SSL session-IDs, there seem to be broken SSL implementations in the wild that may require you to disable this in order for you to succeed.  
See also [SSL\_SESSIONID\_CACHE](https://curl.haxx.se/libcurl/c/CURLOPT_SSL_SESSIONID_CACHE.html) option in CURL manual.

### See also

- [CURL.SetOptionRTSPSessionID](CURLSetOptionRTSPSessionID.md)

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

  
[CURL.SetOptionSSLOptions](CURLSetOptionSSLOptions.md) - [CURL.SetOptionSSLSignatureAlgorithms](CURLSetOptionSSLSignatureAlgorithms.md)

[HTML Version](CURLSetOptionSSLSessionIDCache.shtml)