Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
OpenSSL::SSL::SSLContext#session_remove
(::OpenSSL::SSL::Session session) -> bool
ctx.session_remove(session) → true | false
ext/openssl/ossl_ssl.c
View on GitHub ↗
static VALUE
ossl_sslctx_session_remove(VALUE self, VALUE arg)
{
SSL_CTX *ctx;
SSL_SESSION *sess;
GetSSLCTX(self, ctx);
GetSSLSession(arg, sess);
return SSL_CTX_remove_session(ctx, sess) == 1 ? Qtrue : Qfalse;
}
Removes session from the session cache.
See also
#session_cache_stats
#set_minmax_proto_version
#session_cache_size=
#set_params
also in
4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0