Re: [PHP] Sessions, Constructors, and Destructors - Oh my!

2005-08-29 Thread Jasper Bryant-Greene
Dan Trainor wrote: I was doing some thinking today about the above three subjects. Now, I might sound like a complete tool here because I don't think I quite know exactly in which instances constructors and destructors can be used - but what about inside a session? Say I had a visitor hit a

RE: [PHP] Sessions, Constructors, and Destructors - Oh my!

2005-08-29 Thread Nathan Tobik
Does your load balancer support sticky sessions? What this means is a client will make a request and the request will be sent through a load balancer. That LB will remember the client and always point the client's requests to the same webserver. This way you don't have to write your own session

Re: [PHP] Sessions, Constructors, and Destructors - Oh my!

2005-08-29 Thread Dan Trainor
Nathan Tobik wrote: Does your load balancer support sticky sessions? What this means is a client will make a request and the request will be sent through a load balancer. That LB will remember the client and always point the client's requests to the same webserver. This way you don't have

Re: [PHP] Sessions, Constructors, and Destructors - Oh my!

2005-08-29 Thread Dan Trainor
Thanks for replying, Jasper - snip Is this possible? Does it work this way? If so, or if not for that matter, please help me out here to better understand how these three elements interact with eachother, if at all. Ah yes, me being quite new didn't take into consideration in which

RE: [PHP] Sessions, Constructors, and Destructors - Oh my!

2005-08-29 Thread Nathan Tobik
I've never looked into some of the open-source load balancing solutions, but I know they exist are are out there. The F5's I mentioned are probably around $20k each, and you need two obviously, so if you're on a limited budget those are not the solution for you. I'd google for open source load

Re: [PHP] Sessions, Constructors, and Destructors - Oh my!

2005-08-29 Thread Dan Trainor
Nathan Tobik wrote: I've never looked into some of the open-source load balancing solutions, but I know they exist are are out there. The F5's I mentioned are probably around $20k each, and you need two obviously, so if you're on a limited budget those are not the solution for you. I'd

Re: [PHP] Sessions, Constructors, and Destructors - Oh my!

2005-08-29 Thread Evert | Rooftop
Or you can save the the session in the database [ works good for me ] Sharing the cookie is easy when you have multiple boxes on the same tld [ or FQDN ] Evert Dan Trainor wrote: Nathan Tobik wrote: I've never looked into some of the open-source load balancing solutions, but I know they

RE: [PHP] Sessions, Constructors, and Destructors - Oh my!

2005-08-29 Thread Dean Maunder
I had the same issue not so long ago, the solution we ended up going with was Pound for the load balancer and stock Apache webservers. Pound supports sticky sessions which you can configure the timeout for, and also can proxy https-http. We also wrote our own session handlers to allow session