Fw: Using the HttpSession object with openamf
"Bruce Raggett" <[email protected]>
| Newsgroups | gmane.comp.java.openamf.user |
|---|---|
| Message-ID | <003101c5acef$06414830$31b43bcb@phicorp> |
Hello Sean, Thank you for replying. I found and tried the RequestContext class before sending my first email message to the mailing list. However the RequestContext class did not return the same HttpSession object on subsequent calls. I then did a web search on RequestContext and openamf, and found a reply on a mailing list (which may have been incorrect) which stated that the RequestContext class would not return the same HttpSession object across server calls. As this statement confirmed my test results, I concluded (perhaps incorrectly) that it was correct. Is there something else that I have to do to associate my Flash application with a session so that I don't get a new session on each call? Also, could you tell me what the purpose of the Authentication class in the openamf distribution is, and how it is used (it is an empty class but serializable)? Many thanks, Bruce. ----- Original Message ----- From: Sean C. Sullivan To: [email protected] Cc: [email protected] Sent: Monday, August 29, 2005 10:53 PM Subject: Re: [Openamf-user] Using the HttpSession object with openamf class: org.openamf.RequestContext method: getHttpSession http://www.openamf.org/javadocs/org/openamf/RequestContext.html Bruce Raggett wrote: 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 and store user data from the application's database in the HttpSession object. Then in subsequent calls to the server I want to check that the HttpSession 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. Many thanks, Bruce. ------------------------------------------------------------------------------ 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 -------------------------------------------------------------------------------- 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