session_api.admin.inc

Session API admin functions.

Functions

Namesort descending Description
session_api_settings_form Session API admin settings form.

File

session_api.admin.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Session API admin functions.
  5. */
  6. /**
  7. * Session API admin settings form.
  8. */
  9. function session_api_settings_form() {
  10. // Find modules that implement hook_session_api_cleanup().
  11. $modules = module_implements('session_api_cleanup');
  12. // Cookie expiry.
  13. $form['session_api_cookie_expire_time'] = array(
  14. '#type' => 'textfield',
  15. '#title' => t('Cookie expire time'),
  16. '#description' => t("The <strong>Session API</strong> module sets an additional cookie in the end users' browsers in order to better track sessions across logins and logouts. This is the amount of time, in seconds, that the cookie will stay valid in a user's browser. If set to -1, then the cookie will expire when the session ends (i.e, when the browser closes)"),
  17. '#default_value' => variable_get('session_api_cookie_expire_time', 2592000),
  18. );
  19. return system_settings_form($form);
  20. }