Re: mod_rewrite and AjaxUpdateLink drives me crazy
Re: mod_rewrite and AjaxUpdateLink drives me crazy
- Subject: Re: mod_rewrite and AjaxUpdateLink drives me crazy
- From: Chuck Hill <email@hidden>
- Date: Mon, 20 Oct 2008 10:28:45 -0700
Try adding this to your Session constructor:
NSLog.out.appendln(new RuntimeException("Session created here"));
Chuck
On Oct 18, 2008, at 8:15 PM, Helmut Schottmüller wrote:
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
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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