Changeset 1830 in subversion


Ignore:
Timestamp:
Sep 18, 2008 2:59:02 PM (5 years ago)
Author:
thomasb
Message:

Set the right number of arguments for setcookie()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/rcmail.php

    r1824 r1830  
    729729        $_SESSION['last_auth'] = $_SESSION['auth_time']; 
    730730        $_SESSION['auth_time'] = $now; 
    731         setcookie('sessauth', $this->get_auth_hash(session_id(), $now), '/', 
    732                   $_SERVER['HTTPS'] && ($_SERVER['HTTPS']!='off')); 
     731        $cookie = session_get_cookie_params(); 
     732        setcookie('sessauth', $this->get_auth_hash(session_id(), $now), 0, $cookie['path'], 
     733                  $cookie['domain'], $_SERVER['HTTPS'] && ($_SERVER['HTTPS']!='off')); 
    733734      } 
    734735    } 
Note: See TracChangeset for help on using the changeset viewer.