Re: php-oracle: How pass permanent connections with OCIPLogon between web-pages?

From: Date: Fri, 15 Sep 2000 16:25:43 +0000
Subject: Re: php-oracle: How pass permanent connections with OCIPLogon between web-pages?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-2917@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. miguel

« previous php.db (#2917) next »