[#SSL_SESSION_set_time]
= SSL&lowbar;SESSION&lowbar;set&lowbar;time
:mrdocs:

Set the creation time of an SSL&lowbar;SESSION (seconds since the Unix epoch)&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;time(
    xref:SSL_SESSION.adoc[SSL&lowbar;SESSION]* s,
    long t);
----

== Return Value

1 on success&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| Session to update&period;
| *t*
| New session timestamp&period;
|===


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