01-30-06 02:47 AM
I've been asked this kind of question several times, and it appears people
don't want to pass the HTTP session, but to pass some information that
happens to sit in the HTTP session.
You'd need to think the design again. Passing the HTTP session object is a
weird design. Notice it can contain non-serializable objects, so you could
be stuck at some point.
Session usually also contains stuff that's irrelevant for the functionnal /
business problem you need to solve. Be it technical data or business
information that's not necessary to the other server.
Depending on what you need, you could just pass a security token, a unique
id that the second application could use to query a back-end and get details
it needs, etc.
By making the two applications communicate, you definitely need to detail
the "protocol" and know what you are passing as information.
Just pushing a bulk of data to the next hop is not a good design. :-)
[ Post a follow-up to this message ]
|