CI_Session::tempdata()

tempdata([$key = NULL])

Parameters:
  • $key (mixed) – Tempdata item key or NULL
Returns:

Value of the specified item key, or an array of all tempdata

Return type:

mixed

Gets the value for a specific $_SESSION item that has been marked as “tempdata”, or an array of all “tempdata” items if no key was specified.

Note

This is a legacy method kept only for backwards compatibility with older applications. You should directly access $_SESSION instead.

doc_CodeIgniter
2016-10-15 16:31:54
Comments
Leave a Comment

Please login to continue.