You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by sunil virmani <su...@gmail.com> on 2006/10/04 16:35:25 UTC

Re: removing jsessionid from the URL

Hi All,

In my application in each request jsessionid is passed both in cookie as
well as in url. I have enabled the cookie then why it is appearing in the
URL also.


Regards,
Sunil

On 9/7/06, Antonio Petrelli <br...@tariffenet.it> wrote:
>
> sunil virmani ha scritto:
> > But Is there any way to hide the jsession id attribute?
>
> If you don't mind if the first page has the jsessionid attribute, you
> have simply to enable cookies in your browser.
>
> > It is my client  requirement or i have to handle the session
> > management using cookie.
>
> What do you mean?
>
> > Can you provide me the link for the session mangament in struts using
> > cookie?
>
> It's everything automatic! When you call "request.getSession()", the id
> of the session is decided either using jsessionid attribute in the URL,
> or using the cookie value.
> Anyway it's not specific to Struts, it's in all Java EE applications.
> The only thing Struts-related is URL-rewriting in several Struts tags.
>
> HTH
> Antonio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>