Changeset 704 in subversion


Ignore:
Timestamp:
Aug 26, 2007 6:22:06 PM (6 years ago)
Author:
till
Message:
  • index.php
    • commented out session_destroy()
  • program/include/main.inc

+ session_destroy in rcmail_kill_session()
+ documentation
+ cs
+ @todo's

Location:
branches/devel-vnext
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/devel-vnext/index.php

    r689 r704  
    233233    if (isset($CONFIG['external_logout']) && empty($CONFIG['external_logout']) === false) { 
    234234        rc_main::rcmail_kill_session(); 
     235        //session_destroy(); 
    235236        header('Location:' . $CONFIG['external_logout']); 
    236237        exit; 
  • branches/devel-vnext/program/include/main.inc

    r697 r704  
    4242 * @package  roundcube 
    4343 * @todo     Move GPC constants into class and fix all references! 
     44 * @todo     Remove "rcmail_" prefix to classes. 
     45 * @todo     Docs, docs, docs! 
     46 * @todo     Maybe unit tests. 
    4447 * @since    0.1-rc1 
    4548 */ 
     
    5154     * 
    5255     * Private to force use of static methods. 
     56     * 
    5357     * @access private 
    5458     */ 
    5559    private function __construct() 
    56     { 
    57  
    58     } 
     60    {} 
    5961 
    6062    /** 
     
    7274            @fwrite($fp, $str); 
    7375            @fclose($fp); 
    74         } else { 
     76        } 
     77        else { 
    7578            die('Could not open logs/debug.tfk.'); 
    7679        } 
     
    374377 
    375378 
    376     // do these things on script shutdown 
     379    /** 
     380     * do these things on script shutdown 
     381     */ 
    377382    static function rcmail_shutdown() 
    378383    { 
     
    389394    } 
    390395 
    391     // destroy session data and remove cookie 
     396    /** 
     397     * destroy session data and remove cookie 
     398     * 
     399     * @access static 
     400     * @rturn  void 
     401     */ 
    392402    static function rcmail_kill_session() 
    393403    { 
     
    419429        ); 
    420430        setcookie('sessauth', '-del-', time()-60); 
     431        session_destroy(); 
    421432    } 
    422433 
Note: See TracChangeset for help on using the changeset viewer.