| 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 |
| 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'), |
| 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( |