[#SSL_SESSION_set_timeout]
= SSL&lowbar;SESSION&lowbar;set&lowbar;timeout
:mrdocs:

Set the inactivity timeout recorded on an SSL session&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
long
SSL&lowbar;SESSION&lowbar;set&lowbar;timeout(
    xref:SSL_SESSION.adoc[SSL&lowbar;SESSION]* s,
    long t);
----

== Return Value

1 on success, or 0 if `s` is NULL&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| Session to update&period;
| *t*
| Timeout in seconds&semi; 0 means the session never times out due to idle time&period;
|===


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