/[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.1, Mon Nov 5 14:17:49 2007 UTC revision 1.1.2.1, Thu Feb 5 03:01:39 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2    
3  // $Id$  // $Id: session_expire.module,v 1.1 2007/11/05 14:17:49 kbahey Exp $
4    
5  // Copyright 2007 Khalid Baheyeldin http://2bits.com  // Copyright 2007 Khalid Baheyeldin http://2bits.com
6    
# Line 31  function session_expire_settings() { Line 31  function session_expire_settings() {
31      '#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.'),
32    );    );
33    
34    $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');
35      $interval['0'] = t('Everytime');
36    $form[SESSION_EXPIRE_INTERVAL] = array(    $form[SESSION_EXPIRE_INTERVAL] = array(
37      '#type'          => 'select',      '#type'          => 'select',
38      '#title'         => t('Interval'),      '#title'         => t('Interval'),
# Line 40  function session_expire_settings() { Line 41  function session_expire_settings() {
41      '#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.')
42    );    );
43    
44    $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');
45    $period['1000000000'] = t('Never');    $period['1000000000'] = t('Never');
46    
47    $form[SESSION_EXPIRE_AGE] = array(    $form[SESSION_EXPIRE_AGE] = array(

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.1

  ViewVC Help
Powered by ViewVC 1.1.2