Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Apache sticky session

5 views
Skip to first unread message

Piotrek_20

unread,
Dec 20, 2009, 11:13:21 AM12/20/09
to
Hi,
Can anybody help me to configure sticky session in apache?

I've one apache + 2 apache tomcat servers configured in cluster.

I can't configure sticky session for my apache, and users in server
still get "Session Expired" if apache swich user to other tomcat.

Here is my apache conf:


ProxyPass /balancer-manager !
ProxyPass / balancer://wwwcluster/ stickysession=JSESSIONID|
jsessionid nofailover=Off
<Proxy balancer://wwwcluster>
BalancerMember ajp://127.0.0.1:8009 route=www1 retry=60
BalancerMember ajp://127.0.0.1:8010 route=www2 retry=60
</Proxy>

<Location /balancer-manager>
SetHandler balancer-manager
Order Deny,Allow
Deny from all
Allow from localhost
</Location>
AddOutputFilterByType DEFLATE text/html text/xml text/plain text/css
text/javascript application/xhtml+xml application/x-javascript
application/javascript text/xhtml

please for help.

Message has been deleted

Piotrek_20

unread,
Dec 21, 2009, 8:15:58 AM12/21/09
to
Hi Davide,
My cluster i well configured on tomcat site:
http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html
I've added to my application context.xml:
<?xml version="1.0" encoding="UTF-8"?>
<Context distributable="true" />

which is same as <distributed/> in web.xml, my problem is session
cookie is not saved on client(user) side in web browser and users
swich randomly between both serwers, and if user is swiched than is
automatic logged out.

I think problem is with apache, because there is no sticky session.
But i don't know how to do it

Message has been deleted

Piotrek_20

unread,
Dec 21, 2009, 9:24:00 AM12/21/09
to
Hi,
You don't understod me...my problem is how to force apache http to
save/send or how you call it to client cookie information where user
session is atached.
0 new messages