Changeset 6800


Ignore:
Timestamp:
07/17/12 21:39:12 (7 years ago)
Author:
cristiano
Message:

Ticket #2967 - Melhoria na sessão do usuário do expresso

Location:
trunk/prototype/api
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/api/config.php

    r6528 r6800  
    66{ 
    77        static $register; 
    8         static $sessionStarted; 
    9    
     8 
    109        static function module($config , $module = false) 
    1110        { 
     
    6564                } 
    6665                 
    67         if( !self::$sessionStarted ) 
    68                                 self::$sessionStarted = session_start(); 
     66            if( !isset($_SESSION) ) 
     67            session_start(); 
    6968                 
    7069        } 
     70 
    7171     
    7272        public static function writeIniFile($assoc_arr, $path, $has_sections) 
  • trunk/prototype/api/controller.php

    r6528 r6800  
    796796 
    797797Controller::$cache = Controller::loadCache(); 
     798 
     799require_once(__DIR__.'/esecurity.php'); 
     800$s = new ESecurity(); 
     801$s->valid(); 
     802 
     803 
    798804// ?> 
Note: See TracChangeset for help on using the changeset viewer.