RE: [PHP-DB] pg_connect result auto-deleted from $_SESSION :((
| From: | John W. Holmes | Date: | Sun, 18 May 2003 19:09:17 +0000 |
| Subject: | RE: [PHP-DB] pg_connect result auto-deleted from $_SESSION :(( | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-27865@lists.php.net to get a copy of this message | ||
> When I put my pg_connect() result in a $_SESSION variable, it
> automagically
> gets re-set to int(0). Both on windows and on unix. I'm using
PHP4-stable,
> and would like to know more about this. Google and php.net/manual
didn't
> help
You can't carry a connection or resource ID in the session. It may allow
you to assign it to a session variable, but it will not be valid on the
next page.
You must call pg_connect() in every script.
---John Holmes...