Error Session ID differes between read and write
"; return(false); } if ((time() - $sess_ts) < 600) { if ($data == $sess_data) { return(true); } } if ($sess_ts == 0) { db_exec_command("insert into tpcw_session (id, ts, data) values ('" . addslashes($id) . "', '" . time() . "', '" . addslashes($data) . "')"); } else { db_exec_command("update tpcw_session set ts = '" . time() . "', data = '" . addslashes($data) . "' where id = '" . addslashes($id) . "';"); } return(true); } function tpcw_session_destroy ($id) { global $sess_id, $sess_ts, $sess_data; db_exec_command("delete from tpcw_session where id = '" . addslashes($id) . "';"); return(true); } function tpcw_session_gc ($maxlifetime) { register_shutdown_function('db_session_gc'); return(true); } ?>