set_tempdata($data[, $value = NULL])
Parameters:
$data (mixed) – An array of key/value pairs to set as tempdata, or the key for a single item
$value (mixed) – The value to set for a specific session item, if $data is a key
$ttl (int) – Time-to-live value for the tempdata item(s), in seconds Return type:
void
Assigns data to the $_SESSION superglobal and marks it as “tempdata”.
Note This is a legacy method kept only for backwards compatibility with older applications.