R: [PHP-DB] Re: php-oracle: How pass permanent connections with O CIPLogonbetween web-pages? and RE: [PHP-DB] OCIPLogin and sessions/cookie s
| From: | Roberto Sartor | Date: | Mon, 18 Sep 2000 13:48:15 +0000 |
| Subject: | R: [PHP-DB] Re: php-oracle: How pass permanent connections with O CIPLogonbetween web-pages? and RE: [PHP-DB] OCIPLogin and sessions/cookie s | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-2943@lists.php.net to get a copy of this message | ||
Ciao
Roberto
> -----Messaggio originale-----
> Da: David Newcomb [mailto:davidn@vnvi.com]
> Inviato: lunedì 18 settembre 2000 13.29
> A: Miguel Cruz; Roberto Sartor; 'PHP DB'; 'PHP Oracle'
> Oggetto: Re: [PHP-DB] Re: php-oracle: How pass permanent connections
> with OCIPLogonbetween web-pages? and RE: [PHP-DB] OCIPLogin and
> sessions/cookies
>
>
>
>
> > 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
>
I've got no experience about it yet, but I'd reject URL for security
reasons, and keep cookie when enabled, else sessions