Method SSL.Context()->encode_ticket()
- Method encode_ticket
array(string(8bit)|int) encode_ticket(Sessionsession)- 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)0Non-empty string with the ticket.
int1Lifetime hint for the ticket.
- See also