Turning ON cookies in container will disable URL rewriting. jsessionid
will become a cookie.

Br's,
Marius

On Sep 18, 2:43 pm, David Pollak <feeder.of.the.be...@gmail.com>
wrote:
> On Fri, Sep 18, 2009 at 12:15 PM, Chris Lewis <burningodzi...@gmail.com>wrote:
>
>
>
> > It has nothing to do with lift, but the servlet container. "jsessionid"
> > is a specified standard, and appending it I *think* is part of the
> > mandate when implementing the servlet api. That is to say, the automatic
> > appending will probably occur on any servlet container. Google around
> > and you'll find various ways people deal with it.
>
> Lift is inserting these are part of the URL rewriting at the request of the
> container.
>
> Is this causing a problem?  If it is, you can disable it... I forgot how,
> but I can dig through the code to find out the appropriate LiftRules to
> change.
>
>
>
>
>
> > Grant Wood wrote:
> > > The first time a browser visits my site, all the path-only URLs
> > > embedded in the requested page are being appended with what looks like
> > > a malformed query parameter containing the session id.
>
> > > for example:
> > >     <a href="/correct/path/" >link</a>
> > > is being rewritten:
> > >     <a href="/correct/path/;jsessionid=knq01t90ajh7" >link</a>
>
> > > What's odd is that it is also happening to <img> elements as well:
> > >     <img src="/s/images/site/light_blue.png" />
> > > is being rewritten:
> > >     <img src="/s/images/site/light_blue.png;jsessionid=knq01t90ajh7" /
>
> > > This happens reliably if you clear the cache and all session data from
> > > your browser and visit any page in the site first.  ANy subsequent
> > > pages are fine.  The result is that links work fine (which is why I
> > > didn't notice the problem right away) but images and embedded media
> > > are broken.  If you reload the page, the URLs are all fine.
>
> > > The ;jsessionid=<session id>
>
> > > Other facts:
> > > - It is NOT affecting URLs in CSS or js in external files.
>
> > > - It is NOT being added to URLs with a protocol and authority such
> > > as:
> > >    http://www.foo.com/path/to/page (and it makes no difference if
> > > its an external link or not)
>
> > > - I first suspected that a script somewhere was doing this, however,
> > > disabling javascript in the browser causes no change.  I verified this
> > > using curl.. the URLs are being altered on the server.
>
> > > - I'm on the latest 1.1-SNAPSHOT, but this has been happening for some
> > > time, possibly since I started my work on lift 6 weeks ago.
>
> > > I have been searching through lift code for jsessionid without luck,
> > > so hopefully David or someone knows exactly what part of the chain is
> > > causing this.   Its certainly possible I'm doing this somehow, but I
> > > can find nothing that would come close to doing this in any of my
> > > snippets (or models or libs for that matter)
>
> > > Thanks for any insight, let me know what other information would be
> > > helpful.
>
> --
> Lift, the simply functional web frameworkhttp://liftweb.net
> Beginning Scalahttp://www.apress.com/book/view/1430219890
> Follow me:http://twitter.com/dpp
> Git some:http://github.com/dpp
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to