remove ";jsessionid=xxxxx" from url

495 views
Skip to first unread message

JoKie

unread,
Jul 26, 2010, 9:05:36 AM7/26/10
to Lift
Hello,

is there a way to remove the ";jsessionid=xxxxx" which gets appended
in the url?
The problem is that my images, which are being served by nginx, aren't
found when there is the jsessionid appended.

Ross Mellgren

unread,
Jul 26, 2010, 9:47:24 AM7/26/10
to lif...@googlegroups.com, Lift
This is a container configuration issue. You should check the docs for whatever one you're using.

If you say which you're using (tomcat, jetty, etc) someone might have the steps handy.

-Ross

> --
> You received this message because you are subscribed to the Google Groups "Lift" group.
> To post to this group, send email to lif...@googlegroups.com.
> To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
>

Timothy Perrett

unread,
Jul 26, 2010, 9:53:20 AM7/26/10
to lif...@googlegroups.com
For sure. It has also been discussed at length before on the list, so if you do some searching you'll find some relevant topics.

Cheers, Tim

JoKie

unread,
Jul 26, 2010, 10:26:09 AM7/26/10
to Lift
I'm using Jetty.

On 26 Jul., 15:53, Timothy Perrett <timo...@getintheloop.eu> wrote:
> For sure. It has also been discussed at length before on the list, so if you do some searching you'll find some relevant topics.
>
> Cheers, Tim
>
> On 26 Jul 2010, at 14:47, Ross Mellgren wrote:
>
>
>
> > This is a container configuration issue. You should check the docs for whatever one you're using.
>
> > If you say which you're using (tomcat, jetty, etc) someone might have the steps handy.
>
> > -Ross
>
> > On Jul 26, 2010, at 9:05 AM, JoKie <jonag...@googlemail.com> wrote:
>
> >> Hello,
>
> >> is there a way to remove the ";jsessionid=xxxxx" which gets appended
> >> in the url?
> >> The problem is that my images, which are being served by nginx, aren't
> >> found when there is the jsessionid appended.
>
> >> --
> >> You received this message because you are subscribed to the Google Groups "Lift" group.
> >> To post to this group, send email to lif...@googlegroups.com.
> >> To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
> >> For more options, visit this group athttp://groups.google.com/group/liftweb?hl=en.

Timothy Perrett

unread,
Jul 26, 2010, 10:35:32 AM7/26/10
to lif...@googlegroups.com

JoKie

unread,
Jul 26, 2010, 11:18:43 AM7/26/10
to Lift
thanks.

I want to set the initParameters, but I am using eclipse and not
mortbay.
So when I put the following code in my context file I get this error:
java.lang.NoSuchMethodException: class
org.eclipse.jetty.webapp.WebAppContext.setInitParams(class
java.util.HashMap)

code:

<Set name="initParams">
<Map>
<Entry>
<Item>org.eclipse.jetty.servlet.SessionURL</Item>
<Item>xsessionid</Item>
</Entry>
</Map>
</Set>

any ideas how to fix this?

JoKie

unread,
Jul 26, 2010, 11:50:00 AM7/26/10
to Lift
I forgot to say that I'm using Jetty 7.
Does anyone know how to set the SessionURL parameter in Jetty 7?

Timothy Perrett

unread,
Jul 26, 2010, 12:06:25 PM7/26/10
to lif...@googlegroups.com
Again, google is your friend here. This stuff is documented in the jetty wiki and mailing lists. Moreover, these issues are not lift issues, they are generally jetty and eclipse ones.

Its highly unlikely that anyone is running exactly the same setup as you, so you'll need to go away and try several things - after having researched your issue - and then choose one that works.

Cheers, Tim

Sent from my iPhone

JoKie

unread,
Jul 27, 2010, 7:01:21 PM7/27/10
to Lift
In the end I downgraded jetty to version 6, as I didn't find out how
to disable the sessionUrl in version 7.

Now it's working great. Thank you for the help :-)


On 26 Jul., 18:06, Timothy Perrett <timo...@getintheloop.eu> wrote:
> Again, google is your friend here. This stuff is documented in the jetty wiki and mailing lists. Moreover, these issues are not lift issues, they are generally jetty and eclipse ones.
>
> Its highly unlikely that anyone is running exactly the same setup as you, so you'll need to go away and try several things - after having researched your issue - and then choose one that works.
>
> Cheers, Tim
>
> Sent from my iPhone
>
Reply all
Reply to author
Forward
0 new messages