You are here

function _persistent_login_get_config_warning_msg in Persistent Login 6

Same name and namespace in other branches
  1. 7 persistent_login.module \_persistent_login_get_config_warning_msg()

Return the warning message to be displayed via hook_requirements() or on the Persistent Login settings page as a message.

2 calls to _persistent_login_get_config_warning_msg()
persistent_login_admin_settings in ./persistent_login.pages.inc
Module settings form.
persistent_login_requirements in ./persistent_login.install
Implementation of hook_requirements().

File

./persistent_login.module, line 546
Provide a "Remember Me" checkbox in the login form.

Code

function _persistent_login_get_config_warning_msg() {
  return t('Your site\'s <em>session.cookie_lifetime</em> PHP setting is %life.  When using Persistent Login, it should be 0 so that PHP sessions end when the user closes his/her browser.  You can change this setting by editing <strong>%file</strong>.', array(
    '%life' => ini_get('session.cookie_lifetime'),
    '%file' => conf_path() . '/settings.php',
  ));
}