Date: 09/12/00
- Next message: Jeff Stuart: "RE: [phplib] Registering form variables"
- Previous message: R.B. Scholtus: "Re: [phplib] Registering form variables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi all,
As I looked into my duplicated sid problem, I found
that the insert query is from ct_sql.inc. I upgraded
to phplib7.2c and the problem remains. It turned out
that there seems to be a bug in CT_Sql's ac_store()
function: someone forgot to call
$this->db->next_record() after
$this->db->query($squery) and before accessing
the record with $this->db->f(). And besides, it should
be f(0) instead of f(1), at least with MySQL.
Alternatively, you could use "select * from ..
where.."
as the select query ($squery), and use
$this->db->num_rows()==0 to check it. After fixing it,
the duplicate sid error is gone.
Best Regards,
Albert
--- Albert Xin Jiang <albertjiang <email protected>> wrote:
> I am having duplicated session id problem too, but
> it
> only happens when I use header("Location: blah") to
> redirect to a page.
> If I access this page normally, I don't get any
> errors.
> Anyone know where the problem might be?
>
> By the way, I use phplib7.2b and php4.01.
>
>
> Best regards,
> Albert
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Mail - Free email you can access from
> anywhere!
> http://mail.yahoo.com/
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> phplib-unsubscribe <email protected>
> For additional commands, e-mail:
> phplib-help <email protected>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Jeff Stuart: "RE: [phplib] Registering form variables"
- Previous message: R.B. Scholtus: "Re: [phplib] Registering form variables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

