Thank you very much for replying.
I have written a servlet filter which
(1) Retrieves a user object from the HttpSession object before a request is
(2) Stores the user object in a ThreadLocal object and
(3) Retrieves the user object from the ThreadLocal object after the request
has been handled and
(4) Stores the user object in the HttpSession object
and my tests indicate that the filter is working as expected.
However every time the Flash application connects to Tomcat and openamf, it
is assigned a diffferent session (I am logging the session ids assigned).
Is there something else that I have to do to associate the Flash application
with a session so that each call to Tomcat and openamf is associated with
the same session?
Looking forward to your reply.
----- Original Message -----
From: "Oliver Lietz" <openamf@...>
Cc: "Bruce Raggett" <phicorp@...>
Sent: Sunday, August 28, 2005 9:14 PM
Subject: Re: [Openamf-user] Using the HttpSession object with openamf
> Am Sonntag, 28. August 2005 14:18 schrieb Bruce Raggett:
>> Hello All,
>> I am developing a small Flash application and am having trouble trying to
>> determine how to use the HttpSession object with openamf.
>> On the first call to the server I want to create an HttpSession object
>> store user data from the application's database in the HttpSession
>> Then in subsequent calls to the server I want to check that the
>> object is still valid and retrieve the data I cached in the HttpSession
>> object on my first call to the server.
>> However I am unable to determine how to do this, as I cannot find any
>> method that I can call from a plain Java object that will return me the
>> HttpSession object.
>> Any help will be appreciated.
> Hello Bruce,
> look at "Acegi Security System for Spring"  chapter "1.4. Request
> and the HttpSessionContextIntegrationFilter. I'm using Spring with Acegi
> successfully in my own application for authentication and authorization.
> You have to build the latest version 0.9.0 from source (CVS).
> good luck,
>  http://acegisecurity.sourceforge.net/
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.10.16/83 - Release Date: 26/08/2005