httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Lynch" <>
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:
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.
Yeah, I get a buck. So?

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message