session.inc
session.inc
User session handling functions.
The user-level session storage handlers:
- _drupal_session_open()
- _drupal_session_close()
- _drupal_session_read()
- _drupal_session_write()
- _drupal_session_destroy()
- _drupal_session_garbage_collection()
are assigned by session_set_save_handler() in bootstrap.inc and are called automatically by PHP. These functions should not be called directly. Session data should instead be accessed via the $_SESSION superglobal.
File
includes/session.incFunctions
Name | Description |
---|---|
drupal_save_session | Determines whether to save session data of the current request. |
drupal_session_commit | Commits the current session, if necessary. |
drupal_session_destroy_uid | Ends a specific user's session(s). |
drupal_session_initialize | Initializes the session handler, starting a session if needed. |
drupal_session_regenerate | Called when an anonymous user becomes authenticated or vice-versa. |
drupal_session_start | Starts a session forcefully, preserving already set session data. |
drupal_session_started | Returns whether a session has been started. |
_drupal_session_close | Session handler assigned by session_set_save_handler(). |
_drupal_session_delete_cookie | Deletes the session cookie. |
_drupal_session_destroy | Session handler assigned by session_set_save_handler(). |
_drupal_session_garbage_collection | Session handler assigned by session_set_save_handler(). |
_drupal_session_open | Session handler assigned by session_set_save_handler(). |
_drupal_session_read | Reads an entire session from the database (internal use only). |
_drupal_session_write | Writes an entire session to the database (internal use only). |
© 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/7.x