axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f.@demonics.org (fd)
Subject Re: confused about cookies
Date Wed, 03 Jul 2002 17:05:01 GMT
> from within a handler, the session can be retieved using :

But how about from within a service?  The interface to my document 
non-rpc service is:
	public Element[] blah(Vector elems)

All I have is the body of the message at that point.  Anyone know how to access the context?

> 
>   public void invoke(MessageContext msgContext) throws AxisFault
>   {
>     Session session = msgContext.getSession();
> 
> --Barry
> 
> -----Original Message-----
> From: Alexander Lyubshav [mailto:fd@applied.demonics.org]
> Sent: Tuesday, July 02, 2002 11:39 AM
> To: axis-user@xml.apache.org
> Subject: Re: confused about cookies
> 
> 
> Great, that makes it easier!  So, uh, how can I find out the session ID
> from
> within the server code?
> 
> 
> >
> > >Thanks for your answer.  I am not in control of the client though-- it
> > >doesn't use the Axis framework either.  Is there an easy way to do this
> > >without client support?  (Well, of course the client will pass the
> Cookie
> > >headers back.)
> >
> > I think that's all the Call.setMaintainSession() function does
> > anyway--tells the client to track the cookie
> >
> > > > Alexander,
> > > >
> > > > If you want to use cookies for session management, you don't have to
> add a
> > > > handler.  You just need to specify session scope in your deploy.wsdd
> and
> > > > tell the client to maintain session info.  Check out this message:
> > > >
> > > > http://marc.theaimsgroup.com/?l=axis-user&m=101775995930045&w=2
> > > >
> > > > which provides a real working sample.
> > > >
> > > > Andrew
> > > >
> > > > At 08:07 AM 7/2/2002 -0700, you wrote:
> > > > >I looked in the mailing list archives for information on how to add
> > > cookie
> > > > >handling to a web service.  (HTTP Cookies for sessions.  also i'll
> need
> > > > >access to the session ID in the program.)
> > > > >
> > > > >I was swamped with a big collection of approaches, all of them
> "well I
> > > > >haven't done it but this should work" variety.
> > > > >
> > > > >What is the common way to do cookie session handling?  Does there
> already
> > > > >exist a handler for this?  if so, how can I add taht to my program,
> and
> > > > >get access to the session ID from my pivot method?
> > > > >
> > > > >Thanks!!
> > > > >Alexander
> > > >
> > > >
> > > >
> >
> >
> >



Mime
View raw message