Re: Session Passing in PHP4

From: Date: Wed, 25 Oct 2000 17:56:07 +0000
Subject: Re: Session Passing in PHP4
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-21869@lists.php.net to get a copy of this message
Tim, It seems like you're wanting to put the user's username/password in the url if they don't accept cookies. Am I correct? Here is what I include() at the top of my oracle files. Note that I threw in a function that enables you to just pass in the query and proceed from there: <? session_start(); session_register('username'); session_register('password'); // to change SIDs, use the 3rd paramater per php.net's manual on ocilogon() $connection = OCILogon($username,$password); if (!$connection){ echo "<br>debug info: <br> username=$username<br>"; session_destroy(); exit; } // just pass in the query, and proceed with your WHILE loop afterwards. Works on select, update, insert, etc. function sql_execute($query){ global $connection; $cursor = OCIParse($connection, $query); if (!$cursor){ echo OCIError($cursor)."<BR>"; echo "<div align=left>query is:<br><i>$query</i></div><br>"; OCILogoff($connection); exit; } if (!OCIExecute($cursor)){ echo OCIError($cursor)."<BR>"; echo "<div align=left>query is:<br><i>$query</i></div><br>"; if ($cursor){OCIFreeStatement($cursor); OCILogoff($connection); exit; } return $cursor; } ?> > I can't seem to find anywhere that tells me if you can automatically > transfer from cookie propogation to url propogation if the client does not > accept cookies. Can anybody help me here. > > Also if anyone knows of an oracle oci8 session handler library (for > session_create/session_destroy etc) I would be very interested in knowing > where it is) > > Thanks in advance (and probaly lots of thanks afterwards too :-) > > Regards, > > Tim Parkin > Web Development Manager, Didio Communications Ltd. -- Paul Fernandez Webmaster Structural GenomiX, Inc. www.stromix.com 858.558.4850

« previous php.general (#21869) next »