Changeset 6828 for branches


Ignore:
Timestamp:
07/19/12 18:09:32 (7 years ago)
Author:
eduardow
Message:

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

Location:
branches/2.4/prototype/api
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/prototype/api/config.php

    r6754 r6828  
    66{ 
    77        static $register; 
    8         static $sessionStarted; 
    98   
    109        static function module($config , $module = false) 
     
    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) 
  • branches/2.4/prototype/api/controller.php

    r6754 r6828  
    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.