Method SSL.Context()->encode_ticket()
- Method encode_ticket
array
(string(8bit)
|int
) encode_ticket(Session
session
)- Description
Generate a session ticket for a session.
- Note
The default implementation just generates a random ticket and calls record_session() to store it.
Over-ride this function (and decode_ticket()) to implement server-side state-less session resumption.
- Returns
Returns
0
(zero) on failure (ie cache disabled), and an array on success:Array string(8bit)
0
Non-empty string with the ticket.
int
1
Lifetime hint for the ticket.
- See also