RE: [PHP] Reprise of dissapearing session variables
We use a Big-IP controller from F5: http://www.f5.com/f5products/bigip/index.html Kirk > -Original Message- > From: Jason Bell [mailto:[EMAIL PROTECTED]] > Sent: Monday, September 10, 2001 1:33 PM > To: PHP Users > Subject: Re: [PHP] Reprise of dissapearing session variables > > > Thanks for the input Kirk! > > Unfortunately, I don't have the ability modify my php.ini > (virtual hosting). > Also, if I saved the session data in the database, I'd have > to perform a > database query to get it at the beginning of each page. > That's probably not > good for performance. :/ > > option #1 interests me what do you use to achieve this? > I might be > able to suggest it to my host... they are extremely accommodating. > > I think option #3 is the best solution, if it's possible. > (I'm not sure if > it is or not without modifying the php.ini file) I've been > trying to to > figure it out. My host is also looking into a fix, so when I > find something > out, I'll let you all know. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Reprise of dissapearing session variables
Thanks for the input Kirk! Unfortunately, I don't have the ability modify my php.ini (virtual hosting). Also, if I saved the session data in the database, I'd have to perform a database query to get it at the beginning of each page. That's probably not good for performance. :/ option #1 interests me what do you use to achieve this? I might be able to suggest it to my host... they are extremely accommodating. I think option #3 is the best solution, if it's possible. (I'm not sure if it is or not without modifying the php.ini file) I've been trying to to figure it out. My host is also looking into a fix, so when I find something out, I'll let you all know. :) -Jason - Original Message - From: "Johnson, Kirk" <[EMAIL PROTECTED]> To: "PHP Users" <[EMAIL PROTECTED]> Sent: Monday, September 10, 2001 12:24 PM Subject: RE: [PHP] Reprise of dissapearing session variables > > 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 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Reprise of dissapearing session variables
> 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Reprise of dissapearing session variables
Yeah, we narrowed it down to the cluster as causing the problem friday night. My host is working to figure out a solution. They have a few ideas, but haven't tested them yet. 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? Has anyone out there been faced with this before? How did you get around it, or did you just give up? Thanks! Jason - Original Message - From: "Johnson, Kirk" <[EMAIL PROTECTED]> To: "PHP Users" <[EMAIL PROTECTED]> Sent: Monday, September 10, 2001 7:17 AM Subject: RE: [PHP] Reprise of dissapearing session variables > > The session variables will remain set, but will it looks > > like my session gets lost every now and then if you want > > to see an example, go to http://northpointless.org/test.php > > and hit refresh several times. I cannot figure out what is happening. > > Did you get this figured out? It looks like you are running on a > load-balanced web farm. If so, and you are saving session data in files, > there's your problem. The session file is saved on the server that handles > the first request. When later requests go to a different machine, the > session file can't be found, since it is on the first server. > > Kirk > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Reprise of dissapearing session variables
> The session variables will remain set, but will it looks > like my session gets lost every now and then if you want > to see an example, go to http://northpointless.org/test.php > and hit refresh several times. I cannot figure out what is happening. Did you get this figured out? It looks like you are running on a load-balanced web farm. If so, and you are saving session data in files, there's your problem. The session file is saved on the server that handles the first request. When later requests go to a different machine, the session file can't be found, since it is on the first server. Kirk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]