On this page
function drupal_session_started
drupal_session_started($set = NULL)
Returns whether a session has been started.
File
- includes/session.inc, line 337
- User session handling functions.
Code
function drupal_session_started($set = NULL) {
static $session_started = FALSE;
if (isset($set)) {
$session_started = $set;
}
return $session_started && session_id();
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!session.inc/function/drupal_session_started/7.x