CI_Session::set_userdata()

set_userdata($data[, $value = NULL])

Parameters:
  • $data (mixed) – An array of key/value pairs to set as session data, or the key for a single item
  • $value (mixed) – The value to set for a specific session item, if $data is a key
Return type:

void

Assigns data to the $_SESSION superglobal.

Note

This is a legacy method kept only for backwards compatibility with older applications.

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

Please login to continue.