/ Zope / Apsis / Pound Mailing List / Archive / 2006 / 2006-07 / Session Handling Problem

[ << ] [ >> ]

[ Config Problem? / Mike Withers ... ] [ backend a.b.c.d:port connect: Invalid argument / ... ]

Session Handling Problem
Falk Brockerhoff <fb(at)smartterra.de>
2006-07-06 21:35:48 [ FULL ]
Hi List,

I'm using Pound 1.9 with FreeBSD 6.1 on two dedicated carped
(Master/Backup) Loadbalancers. For the Backends I'm using two Apache
Webservers. My configuration looks like:

User            www
Group           www

LogLevel        1

Alive           30

ListenHTTP      *,80
ListenHTTPS     195.225.xxx.yyy,443 /usr/local/etc/ssl/bla.crt

UrlGroup "www1.*"
  BackEnd       10.0.0.1,80,1
EndGroup
UrlGroup "www2.*"
  BackEnd       10.0.0.2,80,1
EndGroup

UrlGroup ".*"
  BackEnd       10.0.0.1,80,1
  BackEnd       10.0.0.2,80,1

  Session       URL "PHPSESSID" 300
EndGroup

Everything works fine, but session handling seems to be buggy when some
load occurs.

When I visit a website via the loadbalancers I start a Session which
SessionID is written as a parameter within the URL. For Example:
http://www.bla.dom/index.php?PHPSESSID=808as0d809qwe78

I'm clicking around and session handling works fine, I'm served always
from the same webserver. But when there is some load on the webservers,
or I'm hitting Reload again and again rapidly fast, then I'll be served
from the other webserver, too. But there isn't any session with my id,
so I'm running into a session handling error.

Is the loadbalancing mechanism in Pound called before the session
handling takes effect? Or do I have an error in my configuration file?
Will an upgrade to Pound 2.x avoid this behavior? I hope someone can
give me the one or other answer :-)

Thanks,

Falk
Attachments:  
fb.vcf text/x-vcard 363 Bytes

Re: [Pound Mailing List] Session Handling Problem
Robert Segall <roseg(at)apsis.ch>
2006-07-07 18:29:21 [ FULL ]
On Thu, 2006-07-06 at 21:35 +0200, Falk Brockerhoff wrote:[...]

No, the session mechanism has precedence.
[...]

There are known issues with session handling in 1.9. You probably want
to upgrade to the latest 2.0.x.[...]

MailBoxer