RE: [PHP] Reprise of dissapearing session variables
| From: | Johnson, Kirk | Date: | Mon, 10 Sep 2001 19:24:52 +0000 |
| Subject: | RE: [PHP] Reprise of dissapearing session variables | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-66804@lists.php.net to get a copy of this message | ||
> session files get saved in /tmp by default, correct? Is
> there a way to have
> them saved somewhere that would propogate to all the servers
> in the cluster?
Warning! The following is from me, a non-gearhead.
1. We use a load balancer which is able to set a cookie on the first page
request. The cookie contains the ID of the server that handles that first
request. On all subsequent requests, the cookie is used to route the request
to the original server.
2. Haven't done this, but you could also put the session data in a database.
See the php.ini file for the session handler setting.
3. I believe I read that there is a way to save the session files to a drive
that is mountable by all the cluster servers. End of my knowledge on this
one!
Kirk