struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Jouravlev" <jmi...@gmail.com>
Subject Re: Session lost in filter after redirect while using URL-rewrite
Date Tue, 09 May 2006 20:57:06 GMT
On 5/9/06, Andreas Hartmann <andihartmann@freenet.de> wrote:
> Hello Dave,
>
> Dave Newton wrote:
> > Andreas Hartmann wrote:
> >> I implemented two filters which work fine if session handling is done with
> >> cookies. If the session-handling is done by URL-rewriting, the session
> >> seems to be lost after the sendRedirect().
> >>
> >> [snipalottatext]
> >>
> >> I would be glad to get some help,
> >>
> >
> > Are you adding the ";jsessionid=[whatever]" to the path? I don't know if
> > the getContextPath() will automagically include the session id bit.
>
> No, that's not done. I thought, this would be done in the "background" by
> struts automatically. I added the jsessionid and now, it works fine too
> with URL rewriting.
>
>
> Thank you for your quick help,
> kind regards,
> Andreas Hartmann

http://java.sun.com/webservices/docs/1.6/api/javax/servlet/http/HttpServletResponse.html#encodeRedirectURL(java.lang.String)

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message