5

userisidentified

user_is_identified
SYNOPSIS

user_is_identified()

DESCRIPTION

user_is_identified returns true if the user is identified.

NOTE: The PHP configuration parameters session.gc_maxlifetime and session.cookie_lifetime can limit the lifetime of a session. You can modify their initial values in the file includes/settings.inc, at the condition that the configuration of your server allows it.

CODE
  1. function user_is_identified() {
  2.     return isset($_SESSION['user']);
  3. }

$_SESSION['user'] is defined when the user logs in.

SEE ALSO

bootstrap, userhasrole, userprofile

Comments

To add a comment, click here.