Ignore:
Timestamp:
Apr 21, 2006, 4:11:29 AM (19 years ago)
Author:
rvelices
Message:

merge r1230 from branch-1_6 into trunk

bugs 344 and 308: broken user id in $_SESSION due to php.ini register_globals

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/user.inc.php

    r1106 r1231  
    2727
    2828// retrieving connected user informations
    29 if (isset($_COOKIE[session_name()])) 
     29if (isset($_COOKIE[session_name()]))
    3030{
    3131 session_start();
    32  if (isset($_SESSION['id']))
     32 if (isset($_SESSION['pwg_uid']))
    3333 {
    34    $user['id'] = $_SESSION['id'];   
     34   $user['id'] = $_SESSION['pwg_uid'];
    3535   $user['is_the_guest'] = false;
    3636 }
    37  else 
     37 else
    3838 {
    3939   // session timeout
     
    4141   $user['is_the_guest'] = true;
    4242 }
    43 } 
    44 else 
     43}
     44else
    4545{
    4646 $user['id'] = $conf['guest_id'];
     
    5656    $user['id'] = get_userid($_SERVER['REMOTE_USER']);
    5757  }
    58  
     58
    5959  $user['is_the_guest'] = false;
    6060}
Note: See TracChangeset for help on using the changeset viewer.