CI_Session::userdata()

userdata([$key = NULL])

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

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

Return type:

mixed

Gets the value for a specific $_SESSION item, or an array of all “userdata” items if not 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:55
Comments
Leave a Comment

Please login to continue.