From: <jhe...@us...> - 2002-11-22 13:45:39
|
Update of /cvsroot/upcase-project/UpCase/lib In directory sc8-pr-cvs1:/tmp/cvs-serv15689 Modified Files: uc_session.php Log Message: create a session record only if the session id is not empty. Avoid records with empty session Index: uc_session.php =================================================================== RCS file: /cvsroot/upcase-project/UpCase/lib/uc_session.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** uc_session.php 12 Nov 2002 11:08:29 -0000 1.4 --- uc_session.php 22 Nov 2002 13:45:36 -0000 1.5 *************** *** 6,11 **** //include_once("lib/uc_session_handler.php"); - - class UcSession { --- 6,9 ---- *************** *** 16,20 **** var $returnPath; ! function UcSession($returnPath) { global $ucsql_sessioncreate; --- 14,18 ---- var $returnPath; ! function UcSession($uri) { global $ucsql_sessioncreate; *************** *** 31,40 **** $this->db = new UcSql(); ! $this->returnPath = $returnPath; $query = sprintf($ucsql_sessionget, $this->sessid); $res = $this->db->Execute($query) or die("Unable to check session: " . $this->db->ErrorMsg()); ! if ($res->RowCount() == 0) { // Create a record for this session in the db --- 29,40 ---- $this->db = new UcSql(); ! $ar = parse_url($uri); ! ! $this->returnPath = $ar["path"]; $query = sprintf($ucsql_sessionget, $this->sessid); $res = $this->db->Execute($query) or die("Unable to check session: " . $this->db->ErrorMsg()); ! if ($res->RowCount() == 0 && !empty($this->sessid)) { // Create a record for this session in the db |