Date: 03/02/01
- Next message: Jeroen Laarhoven: "Re: [phplib] database problem"
- Previous message: ananthapalli murthy: "[phplib] Problem again"
- In reply to: Brian Popp: "RE: [phplib] database problem"
- Next in thread: Ali: "Re: [phplib] database problem"
- Reply: Ali: "Re: [phplib] database problem"
- Reply: John Mandeville: "Re: [phplib] database problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
> Ali, I think I have had a similar problem in the past. The page_close()
> function apparently does not do a change on the database before it tries to
> do it's update (bug?). In order to get around this, and still maintain
> database abstraction, I just put a simple, quick query at the bottom of the
> page right before the page_close.
>
> Something like :
>
> $sessdb->query ( "SELECT sid from active_sessions WHERE sid='" . $sess->id .
> "'" );
I usually call $sessdb->connect(); just before page-close() to resolve this
problem, but as written in the phplib doc, you should try to integrate the
session table in the same database as your application.
I'm not sure about that, but i think that the less different (MySQL)
username/password/db you use, the less threads (and the less memory) the
server will use.
-- Marc Fournier <marc.fournier <email protected>> pub 1024D/71AAE2A6 http://www.skirando.ch/--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>
- Next message: Jeroen Laarhoven: "Re: [phplib] database problem"
- Previous message: ananthapalli murthy: "[phplib] Problem again"
- In reply to: Brian Popp: "RE: [phplib] database problem"
- Next in thread: Ali: "Re: [phplib] database problem"
- Reply: Ali: "Re: [phplib] database problem"
- Reply: John Mandeville: "Re: [phplib] database problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

