We have the same problem, and we're using Tomcat; we thought it might
be a Struts config issue.
I don't *think* it's solvable using UrlRewrite (we've tried), but
would love to know if it is.
Tim
Here is a urlrewrite rule to get rid of it, substitute JSESSIONID for
the name of the parameter your app server uses to track sessions.
<outbound-rule encodefirst="true">
<name>Strip URL Session ID's</name>
<from>^(.*?)(?:\;JSESSIONID=[^\?#]*)?(\?[^#]*)?(#.*)?
$</from>
<to encode="false">$1$2$3</to>
</outbound-rule>
Just be aware that removing the session id will make sessions not work
for clients that do not support cookies.
~ Scott
It happens because the web server doesn't know if cookies are enabled on the
browser.
Refer to website:
http://javatechworld.blogspot.com/2011/01/how-to-remove-jsessionid-from-url-java.html
for more information.
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups
> "UrlRewrite" group.
> To post to this group, send email to urlre...@googlegroups.com
> To unsubscribe from this group, send email to
> urlrewrite+...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/urlrewrite?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
>
>
--
View this message in context: http://old.nabble.com/How-to-Remove-jsessionid--from-URL-tp19776117p31098775.html
Sent from the UrlRewrite mailing list archive at Nabble.com.
It happens because the web server doesn't know if cookies are enabled on the
browser.
Refer to website:
http://javatechworld.blogspot.com/2011/01/how-to-remove-jsessionid-from-url-java.html
for more information.
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google Groups
> "UrlRewrite" group.
> To post to this group, send email to urlre...@googlegroups.com
> To unsubscribe from this group, send email to
> urlrewrite+...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/urlrewrite?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
>
>
--
View this message in context: http://old.nabble.com/How-to-Remove-jsessionid--from-URL-tp19776117p31098776.html