Hello all, I sent this a few weeks ago, but wasn't able to get any
responses.
Does anyone else have session handling problems with ASP/ASP.net using
the following regexp "ASP\.NET_SessionId|ASPSESSIONID[A-Z]*" to handle
IIS applications.
I took the original regexp from this thread:
http://www.apsis.ch/pound/pound_list/archive/2007/2007-07/1184948236000/
index_html?fullMode=1#1185006949000
But it doesn't seem to be working for me in Pound 2.4.3. If it's any
help, Pound was compiled with the Google performance libraries and PCRE.
======================================
Hello all, I was hoping someone might be able to help with a session
pinning problem that we've run into. We currently have a few IIS
machines, but are having trouble balancing some applications (some
written in .net and some in classical ASP).
We'd like to "pin" the user to whatever the first server that they came
to was. We've tried several different configurations, but they don't
seem to quite work.
I did a search for this previously, and found that some people got this
regular expression to work: "ASP\.NET_SessionId|ASPSESSIONID[A-Z]*"
However, when I do this (tried on 2.4 and 2.4.3) we aren't able to see
the sessions, and pound actually seems to ignore the line. Putting
parentheses around both cookie names makes pound balance on the cookie
name, instead of the value of the cookie. If I only use one of the
cookie names, it seems to work correctly.
Below are three approaches that I've tried. Like I mentioned, using
only one seems to work, but from previous searches it looked like Pound
could handle regular expressions for cookie names, so I'm trying to
balance with either "ASP\.NET_SessionId" or "ASPSESSIONID[A-Z]*"
Any help/suggestions would be appreciated.
----------------------------------------
# Uses the cookies name as key instead of cookie value. All sessions
go to the same
# backend.
Session
Type COOKIE
ID "(ASP\.NET_SessionId)|(ASPSESSIONID[A-Z]*)"
TTL 14400
End
----------------------------------------
# poundctl never displays any sessions
Session
Type COOKIE
ID "ASP\.NET_SessionId|ASPSESSIONID[A-Z]*"
TTL 14400
End
----------------------------------------
# Seems to work properly. Load balancing and pinning work correctly.
Session
Type COOKIE
ID "ASP\.NET_SessionId"
TTL 14400
End
----------------------------------------
======================================
--
Please let me know how CASTLE Worldwide can better serve you.
++Contact Information++
Alfonso Espitia
Web Developer
Phone: 919.572.6880 x.6933
Fax: 919.361.2426
Email: aespitia(at)castleworldwide.com
http://www.castleworldwide.com
|