/[drupal]/contributions/modules/session_expire/session_expire.module
ViewVC logotype

Diff of /contributions/modules/session_expire/session_expire.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2.2.1, Wed Dec 3 15:55:23 2008 UTC revision 1.2.2.2, Thu Feb 5 03:03:10 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id: session_expire.module,v 1.2.2.1 2008/12/03 15:55:23 kbahey Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 36  function session_expire_settings() { Line 36  function session_expire_settings() {
36      '#value' => t('This module requires cron to be correctly configured and running for Drupal.'),      '#value' => t('This module requires cron to be correctly configured and running for Drupal.'),
37    );    );
38    
39    $interval = drupal_map_assoc(array(10800, 21600, 43200, 86400, 172800, 259200, 604800), 'format_interval');    $interval = drupal_map_assoc(array(0, 7200, 10800, 21600, 43200, 86400, 172800, 259200, 604800), 'format_interval');
40      $interval['0'] = t('Everytime');
41    $form[SESSION_EXPIRE_INTERVAL] = array(    $form[SESSION_EXPIRE_INTERVAL] = array(
42      '#type'          => 'select',      '#type'          => 'select',
43      '#title'         => t('Interval'),      '#title'         => t('Interval'),
# Line 45  function session_expire_settings() { Line 46  function session_expire_settings() {
46      '#description'   => t('Run the cleanup at the specified interval. This tells Drupal how often to run the cleanup. On a busy site, you want that to be more frequent (e.g. every day at a minimum). You don\'t want it to be too frequent though (e.g. every hour), as it can tie up the sessions table for a long time. Cron must be configured to run more frequently than the value you chose here.')      '#description'   => t('Run the cleanup at the specified interval. This tells Drupal how often to run the cleanup. On a busy site, you want that to be more frequent (e.g. every day at a minimum). You don\'t want it to be too frequent though (e.g. every hour), as it can tie up the sessions table for a long time. Cron must be configured to run more frequently than the value you chose here.')
47    );    );
48    
49    $period = drupal_map_assoc(array(43200, 86400, 172800, 259200, 604800, 1209600, 2419200), 'format_interval');    $period = drupal_map_assoc(array(1800, 3600, 7200, 10800, 21600, 43200, 86400, 172800, 259200, 604800, 1209600, 2419200), 'format_interval');
50    $period['1000000000'] = t('Never');    $period['1000000000'] = t('Never');
51    
52    $form[SESSION_EXPIRE_AGE] = array(    $form[SESSION_EXPIRE_AGE] = array(

Legend:
Removed from v.1.2.2.1  
changed lines
  Added in v.1.2.2.2

  ViewVC Help
Powered by ViewVC 1.1.2