Re: [phplib] database problem From: Ali (arsajedi <email protected>)
Date: 03/02/01

Hello again,

> Session managment is only one independant table, so it isn't much of a
> problem to put it in the same database than your application. And if you
> _have_ to use another database, simply call $sessdb->connect() (ev. with
> some parameters, look at the source of db_*.inc), just before calling
> page_close(). page_close() simply restores a connection to the database
> defined in your extended db_sql class, or creates a new connection if none
> allready exist.

I have tried many possibilities discussed here but still having the same
problem that I can not get a validation if the application database is
different from the database defined in phplib. I tried the possibility given
by Marc as $sessdb->connect($Host, $User, $Password); but it does not work.
I created an auth_user and an active_session table in the application
database but it does not work either. Could anybody help me further on this
issue please? I just want to have a different application database than the
phplib database. Any help is highly appreciated.

Ali

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>