A follow-up to my own post for the archives...
At my work, we run 2 separate web sites from the same instance of
apache. http://wykids.org is our internet facing website,
http://stars.internal is our "accessible only from the LAN web front
end" to our PostgreSQL database. stars.internal is where most of the
work is done by an office full of very busy people.
Previously--like for the last 7 years--I've set session.cookie_domain in
the php.ini file to wykids.org and that worked fine for both web sites.
After the upgrade to php-5.4.20, the session would only be persistent on
the wykids.org web site. On stars.internal a new session id was
generated with every call to session_start()--in our case, with every
page load since we use that session information to track who does what
and other things.
Removing the "session.cookie_domain = wykids.org" from the ini file
restored the default and sessions became persistent again on
stars.internal, but I don't even want to think about how many hours it
took to arrive at that ;-)
I tried going back to php-5.3.27 to see if that would "fix" the problem
but once I link in 5.3.27 apache fails with a "connection to the server
reset" error. I ran a ktrace -idg on httpd to try and determine why but
nothing jumps out at me. I put the ktrace output up on the web at
http://www.wykids.org/ktrace.txt
if anyone wants a look. It seems to me that even if 5.4 is the new
default, so long as 5.3 remains in packages it ought to work.
Jeff Ross
--Previous post below
This must be my week.
Is anybody else having problems with php sessions after updating to
php-5.4? I'm in a spot now where I can have one user at a time hitting
the database through the web site. Using php-5.4.20, php-pgsql-5.4.20
both installed from packages, on
OpenBSD 5.4-current (GENERIC.MP) #97: Mon Oct 28 10:56:19 MDT 2013
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC.MP
I've tried going back to 5.3.27 through the package but apache doesn't
seem to like that at all anymore--I can't connect at all to any web page
on the server with 5.3.27 in use failing with an unexpected read error.
Tried building 5.3.27 from ports and I'm getting a raft of bad system
calls (core dumped) in the build.
Thanks in advance,
Jeff