You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Matt Kurjanowicz <ma...@gtri.gatech.edu> on 2004/05/27 01:46:33 UTC
HTTP Sessions across multiple services
Hello,
I've been trying to get sessions to work with axis-1.1 and tomcat 4.1.29. However, I can't seem to get the sessions to stick. I have a few questions:
* Do sessions only work for the same service, say I have a LoginService and a ModelService, does the session from LoginService transfer over to the ModelService?
* How do I get axis to do this? I've called (Service) service.setMaintainSession(true) in my code, but the session keeps on changing. Any help, ideas for debugging would be great!
Thanks,
Matt Kurjanowicz
RE: HTTP Sessions across multiple services
Posted by Abhinav Maheshwari <ab...@contata.co.in>.
Hi Srinivas/Matt,
There are two ways of doing this. One is to use a static hashtable for
maintaining sessions in the SessionHandler. This ensures that the sessions
are accessible across various services.
Second way is to use an authentication service in the request flow for both
services, ModelService and LoginService and the authentication service
checks for the session.
Warm regards,
Abhinav Maheshwari
-----Original Message-----
From: Srinivas Vemula [mailto:srinivas.vemula@mensamind.com]
Sent: Thursday, June 10, 2004 3:53 PM
To: axis-user@ws.apache.org
Subject: Re: HTTP Sessions across multiple services
Hi Matt,
I am also trying to address the same issue. Please share your experience
if you have solved the issue
Thanks for your time and help
Srini
Matt Kurjanowicz wrote:
>Hello,
>
>I've been trying to get sessions to work with axis-1.1 and tomcat 4.1.29.
However, I can't seem to get the sessions to stick. I have a few questions:
>* Do sessions only work for the same service, say I have a LoginService and
a ModelService, does the session from LoginService transfer over to the
ModelService?
>* How do I get axis to do this? I've called (Service)
service.setMaintainSession(true) in my code, but the session keeps on
changing. Any help, ideas for debugging would be great!
>
>Thanks,
>Matt Kurjanowicz
>
>
>
--
Srinivas Vemula +91 40 23547826- Ext 201
Associate Consultant +91 40 23541447 (Fax)
Mensamind +91 98497-42720 (Mobile)
Hyderabad
India
http://www.mensamind.com
DISCLAIMER
The information contained in this e-mail is confidential and intended for
the named recipient(s) only. If you are not an intended recipient of this
email you must not copy, distribute or take any further action in reliance
on it. You should delete it and notify the sender immediately.
Re: HTTP Sessions across multiple services
Posted by Srinivas Vemula <sr...@mensamind.com>.
Hi Matt,
I am also trying to address the same issue. Please share your
experience if you have solved the issue
Thanks for your time and help
Srini
Matt Kurjanowicz wrote:
>Hello,
>
>I've been trying to get sessions to work with axis-1.1 and tomcat 4.1.29. However, I can't seem to get the sessions to stick. I have a few questions:
>* Do sessions only work for the same service, say I have a LoginService and a ModelService, does the session from LoginService transfer over to the ModelService?
>* How do I get axis to do this? I've called (Service) service.setMaintainSession(true) in my code, but the session keeps on changing. Any help, ideas for debugging would be great!
>
>Thanks,
>Matt Kurjanowicz
>
>
>
--
Srinivas Vemula +91 40 23547826- Ext 201
Associate Consultant +91 40 23541447 (Fax)
Mensamind +91 98497-42720 (Mobile)
Hyderabad
India
http://www.mensamind.com
DISCLAIMER
The information contained in this e-mail is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it. You should delete it and notify the sender immediately.