php-db | 2000121
Date: 12/15/00
- Next message: Julio Cuz, Jr.: "[PHP-DB] Tables"
- Previous message: Scott: "Re: [PHP-DB] A book to recommend?"
- In reply to: Dave VanAuken: "RE: [PHP-DB] closing database connection prior to redirection?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I have a similar issue.. I run a php admin script that authenticates a user
into a MySQL database, and there is a function to close and unlock the db.
when that happens, it should log the admin out, and checking the environment
var SQL_AUTH_USER_NAME it looks fine, but if I select another option it
automatically reconnects using the previous user/password instead of
re-authenticating via login.
Any help?
> From: "Dave VanAuken" <dave <email protected>>
> Date: Thu, 14 Dec 2000 14:04:55 -0500
> To: <php-db <email protected>>
> Subject: RE: [PHP-DB] closing database connection prior to redirection?
>
> Is this for all database implementations? MySQl, PostgreSQL...
> particularly in the case of PHP header() redirect.
>
> thanks
>
> Dave
>
> -----Original Message-----
> From: Matthew Ballard [mailto:Matthew <email protected>]
> Sent: Thursday, December 14, 2000 1:26 PM
> To: php-db <email protected>
> Subject: Re: [PHP-DB] closing database connection prior to redirection?
>
>
> With PHP, when you hit the end of a script (which redirecting using
> Header(Location...) or Javascript or a Meta tag is), then as long as you
> don't use persistent conncetions, PHP automatically cleans up after the
> script including closing existing DB connections.
> Matthew
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Julio Cuz, Jr.: "[PHP-DB] Tables"
- Previous message: Scott: "Re: [PHP-DB] A book to recommend?"
- In reply to: Dave VanAuken: "RE: [PHP-DB] closing database connection prior to redirection?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

