php.ini setting and Session problem

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
AGISB
Forum Contributor
Posts: 422
Joined: Fri Jul 09, 2004 1:23 am

php.ini setting and Session problem

Post by AGISB »

Session question:

I am running several apache binaries on one machine. Several sites use the binary with php compiled in. Now to the problem.

1. I need different session paramenters on those sites. How does php read the php.ini? At startup of the apache binary or also during runtime?

I was thinking of changing the php.ini, start a binary, change php.ini start another binary. Would that work or/and is there a more convenient way to accomplish this task?

2. I need s session to continue from http://www.foo.com to secure.foo.com. Manually setting a cookie with the domain setting of foo.com should work for cookies but how do I change the domain for the session cookie? It saves as http://www.foo.com and therefore secure.foo.com cannot read it.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

On windows systems php.ini is read once, during start up. Not too sure on *nix though..

As for the cookie params: :arrow: here
Post Reply