Re: Re: php-oracle: How pass permanent connections with OCIPLogonbetween web-pages? and RE: [PHP-DB] OCIPLogin and sessions/cookies
| From: | David Newcomb | Date: | Mon, 18 Sep 2000 11:28:42 +0000 |
| Subject: | Re: Re: php-oracle: How pass permanent connections with OCIPLogonbetween web-pages? and RE: [PHP-DB] OCIPLogin and sessions/cookies | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-2941@lists.php.net to get a copy of this message | ||
> On 9/15/00 2:30 AM, Roberto Sartor at roberto@mionetto.it wrote:
> > if I do a permanent connection like this:
> > $conn=OCIPLogon ($username,$password, $alias_db);
> >
> > and I don't close it at the end of the script, what do I need to pass to
> > another page to use the same?
> > What I need, is using the same connection, not opening some others.
> >
> > Is enough something like <a href=next_page.php?conn=$conn>?
>
> All you need to do is repeat the OCIPLogon call, with EXACTLY the same
> parameters, in your next script. It will see that the username and
password
> are the same and re-use the existing connection.
What is the best why to sending the user name and password
so the user dose not have to re-type them? Sessions/Cookies/URL