httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Lynch" <...@l-i-e.com>
Subject Re: [users@httpd] loadbalancing with Apache - Sticky Sessions
Date Thu, 14 Dec 2006 18:30:25 GMT
On Thu, December 14, 2006 10:16 am, Richard de Vries wrote:
> I'm experiencing some problems with our loadbalancer
> infrastructure over our Apache webservers and I've
> been asked to set some sort of Session ID either in
> the environment variables, or as part of the URL.
>
> Something the loadbalancers can use to determine
> session information.
>
> I was thinking of mod_rewrite perhaps but I have not
> been able to find any good information on generating
> session IDs etc.
>
> Does anyone have any good recommendations /
> suggestions?

If you happen to be running PHP, and you happen to be able to
integrate this well, there are settings in php.ini called
"use_trans_sid" which tell PHP to put its session id into the URL.

PHP will automatically cram the session id into every link, every
form, every src= and so on, if you turn that on.

You may also want to look at the notes from this talk:
http://jasonrexilius.com/GloballyDistributedWebCluster.php
in which Jason Rexilius describes a method of storing the session data
itself in the cookie in section 5)

I think he's got a more article-oriented version online somewhere, but
it didn't turn up in my quick Google.

-- 
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message