[#SSL_CTX_remove_session]
= SSL&lowbar;CTX&lowbar;remove&lowbar;session
:mrdocs:

Remove a session from an SSL context&apos;s internal session cache and mark it non&hyphen;resumable&period;

== Synopsis

Declared in `&lt;openssl&sol;ssl&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;CTX&lowbar;remove&lowbar;session(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    xref:SSL_SESSION.adoc[SSL&lowbar;SESSION]* session);
----

== Return Value

1 on success, or 0 if the session was not found in the cache&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context whose cache is updated&period;
| *session*
| Session to remove&semi; SSL&lowbar;SESSION&lowbar;free is called once for it&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
