php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17043 Sessions and OCIPLogon
Submitted: 2002-05-06 10:09 UTC Modified: 2002-05-07 08:21 UTC
From: cunha at gabcmt dot eb dot mil dot br Assigned:
Status: Closed Package: OCI8 related
PHP Version: 4.2.0 OS: Linux 2.4.18
Private report: No CVE-ID: None
 [2002-05-06 10:09 UTC] cunha at gabcmt dot eb dot mil dot br
When using OCIPLogon connecting to Oracle8i, it creates many sessions at the server. I want to know if this behavior is by design because it isn't correct. A persistent connection "must" be shared between any number of children(threads and/or process).
Why so many sessions?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-07 07:47 UTC] thies@php.net
This is not a bug. Please double-check the documentation available
at http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

as apache is multi-process you will have as many sessions 
as you have apache-processes. that's the way it is. we 
cannot share connections between different 
apache-processes. 
 [2002-05-07 08:21 UTC] cunha at gabcmt dot eb dot mil dot br
thanx.
 [2002-05-23 20:36 UTC] chansen at stromix dot com
When I make an OCIPLogon, it one PHP page, all other users, even those not executing that page get affected.  The outcome is a buildup of Inactive users on the Oracle server.  I did read the manual, which is not very informative, as witnessed by the multiple threads on this very issue.  My advice is don't use OCIPlogon, because it wastes resources, and each time you call it, a new persitent session will be created, which you cannot apparently kill, with out restarting Apache.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 21:01:36 2024 UTC