includes/sessions.php
changeset 205 62ee6685ad18
parent 183 eec079676fe7
parent 202 c9fd175289aa
child 208 7fab1804a49e
equal deleted inserted replaced
185:90b7a52bea45 205:62ee6685ad18
   204    */
   204    */
   205    
   205    
   206   var $acl_deps = Array();
   206   var $acl_deps = Array();
   207   
   207   
   208   /**
   208   /**
   209    * Our tell-all list of permissions.
   209    * Our tell-all list of permissions. Do not even try to change this.
   210    * @access private - or, preferably, protected
   210    * @access private
   211    * @var array
   211    * @var array
   212    */
   212    */
   213    
   213    
   214   var $perms = Array();
   214   var $perms = Array();
   215   
   215   
   861     }
   861     }
   862     else
   862     else
   863     {
   863     {
   864       // Stash it in a cookie
   864       // Stash it in a cookie
   865       // For now, make the cookie last forever, we can change this in 1.1.x
   865       // For now, make the cookie last forever, we can change this in 1.1.x
   866       setcookie( 'sid', $session_key, time()+315360000, scriptPath.'/' );
   866       setcookie( 'sid', $session_key, time()+315360000, scriptPath.'/', null, ( isset($_SERVER['HTTPS']) ) );
   867       $_COOKIE['sid'] = $session_key;
   867       $_COOKIE['sid'] = $session_key;
   868     }
   868     }
   869     // $keyhash is stored in the database, this is for compatibility with the older DB structure
   869     // $keyhash is stored in the database, this is for compatibility with the older DB structure
   870     $keyhash = md5($session_key);
   870     $keyhash = md5($session_key);
   871     // Record the user's IP
   871     // Record the user's IP
  2594    */
  2594    */
  2595    
  2595    
  2596   var $acl_deps = Array();
  2596   var $acl_deps = Array();
  2597   
  2597   
  2598   /**
  2598   /**
  2599    * Our tell-all list of permissions.
  2599    * Our tell-all list of permissions. Do not even try to change this.
  2600    * @access private - or, preferably, protected...too bad this has to be PHP4 compatible
  2600    * @access private
  2601    * @var array
  2601    * @var array
  2602    */
  2602    */
  2603    
  2603    
  2604   var $perms = Array();
  2604   var $perms = Array();
  2605   
  2605