12
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
- function user_is_identified() {
- return isset($_SESSION['user']);
- }
$_SESSION['user']
is defined when the user logs in.
Comments