Changeset 1562

Show
Ignore:
Timestamp:
03/13/08 09:53:37 (7 months ago)
Author:
misja
Message:

Misja Hoebe <misja@curverider.co.uk> Applied ticket:322:080227_login_without_cookie.2.diff, closes #322

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/lib/setup.php

    r1551 r1562  
    346346        $_COOKIE['ElggSessionTest'.$CFG->sessioncookie] = $_SESSION['SESSION']->session_test; 
    347347    } 
    348  
    349     //@rho Force to reload user data from db 
    350     $_SESSION['USER']    = new StdClass; 
     348    if (! isset($_SESSION['USER']))    { 
     349        $_SESSION['USER']    = new StdClass; 
     350    } 
    351351     
    352352    $SESSION = &$_SESSION['SESSION'];   // Makes them easier to reference