ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> httpd-users
httpd-users
Re: [users@httpd] loadbalancing with Apache - Sticky Sessions
by Richard Lynch other posts by this author
Dec 14 2006 10:31AM messages near this date
[users@httpd] loadbalancing with Apache - Sticky Sessions | Re: [users@httpd] loadbalancing with Apache - Sticky Sessions
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@[...].org
   "   from the digest: users-digest-unsubscribe@[...].org
For additional commands, e-mail: users-help@httpd.apache.org
Thread:
Richard de Vries
Richard Lynch
Sander Temme
Richard de Vries

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved