mod_rewrite and AjaxUpdateLink drives me crazy
mod_rewrite and AjaxUpdateLink drives me crazy
- Subject: mod_rewrite and AjaxUpdateLink drives me crazy
- From: Helmut Schottmüller <email@hidden>
- Date: Sun, 19 Oct 2008 05:15:28 +0200
Hi folks,
I am successfully using my Wonder app with Tomcat 5.5 and Apache
mod_rewrite in Apache 2.2.
I added a rewrite rule to shorten my URL and in order to get this work
with session cookies, I return "/" in domainForIDCookies of my
subclasses session and subclassed ERXWOServletContext to force
ERXApplication._rewriteURL to work with my application actions (thanks
to Lachlan and Mike for these hints).
But when I use AjaxUpdateLink in my components for some reason a new
Session will be created during the AjaxUpdateLink action and I can't
find out where this happens. I did a lot of debugging (or let's say a
lot of log.debug() on my server) in order to find out where in my
subclassed ERXWOServletContext I might do a required fix but I didn't
find out.
This only happens if I use mod_rewrite. Strange enough with
mod_rewrite a jsessionid parameter is added to ANY url of my
application not only to the first one I call (which happens when I
don't use mod_rewrite). So it seems to me that Tomcat thinks that
session cookies are not possible with the application. I am not sure
if this might have something to do with my problem so I wonder if I
simply misconfigured my rewriteRules or if I missed something in my WO
code...
I'd be happy for any suggestions.
Thanks in advance,
Helmut
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden