CI_Session::has_userdata()

has_userdata($key)

Parameters:
  • $key (string) – Session item key
Returns:

TRUE if the specified key exists, FALSE if not

Return type:

bool

Checks if an item exists in $_SESSION.

Note

This is a legacy method kept only for backwards compatibility with older applications. It is just an alias for isset($_SESSION[$key]) - please use that instead.

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

Please login to continue.