The timeout value can be SimpleSAML_Session::DATA_TIMEOUT_SESSION_END, which indicates
that the data should never be deleted.
public setData ( string $type, string $id, mixed $data, integer | null $timeout = null ) | ||
$type | string | The type of the data. This is checked when retrieving data from the store. |
$id | string | The identifier of the data. |
$data | mixed | The data. |
$timeout | integer | null | The number of seconds this data should be stored after its last access. This parameter is optional. The default value is set in 'session.datastore.timeout', and the default is 4 hours. |