Update of /cvsroot/phpmp/phpMP/core
In directory sc8-pr-cvs1:/tmp/cvs-serv18386/core
Modified Files:
sessions.php
Log Message:
Try #2.
Index: sessions.php
===================================================================
RCS file: /cvsroot/phpmp/phpMP/core/sessions.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** sessions.php 22 Sep 2003 09:52:28 -0000 1.1
--- sessions.php 22 Sep 2003 10:00:01 -0000 1.2
***************
*** 66,69 ****
--- 66,70 ----
$ip = $this->_sess_ip_encoded();
$session_exists = false;
+ $user_id = false;
if(!$this->_logged_in)
***************
*** 80,84 ****
////////////////////////////////////////////
! if($_COOKIE[$Portal->cfg_get('cookie_name') . '_data'])
{
$cookie_data = $_COOKIE[$Portal->cfg_get('cookie_name') . '_data'];
--- 81,85 ----
////////////////////////////////////////////
! if(!empty($_COOKIE[$Portal->cfg_get('cookie_name') . '_data']))
{
$cookie_data = $_COOKIE[$Portal->cfg_get('cookie_name') . '_data'];
***************
*** 154,158 ****
$this->_data['session_key'] = $this->_sess_key;
$this->_data['session_user_id'] = $user_id;
! $this->_data['session_start_time'] = $exp_time;
$this->_data['session_ip'] = $ip;
}
--- 155,160 ----
$this->_data['session_key'] = $this->_sess_key;
$this->_data['session_user_id'] = $user_id;
! $this->_data['session_start_time'] = $time;
! $this->_data['session_exp_time'] = $exp_time;
$this->_data['session_ip'] = $ip;
}
***************
*** 197,201 ****
$sql = "UPDATE " . DB_SESSIONS_TABLE . " SET
session_exp_time=" . $exp_time . " WHERE
! session_key=" . $this->_sess_key;
$result = $DB->sql_query($sql);
--- 199,203 ----
$sql = "UPDATE " . DB_SESSIONS_TABLE . " SET
session_exp_time=" . $exp_time . " WHERE
! session_key='" . $this->_sess_key . "'";
$result = $DB->sql_query($sql);
|