Hi Chuck,

thanks! I will try that. I'm not sure why this stupid new session is being created :-( But since I figured out that I can rewrite my URL's using the rewriteURL method in ERXApplication even with wotaskd I have no pressure to move to Tomcat. The only reason I did that was that I needed beautified URL's and I thought this is only possible with Apache +mod_rewrite+mod_jk+Tomcat. But now I see this works perfectly fine with wotaskd+mod_rewrite+Apache so I don't need to switch to Tomcat.
But I'm curious so I'll try to find out what exactly happens there...

Best,

Helmut

Am 20.10.2008 um 19:28 schrieb Chuck Hill:

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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to [EMAIL PROTECTED]


--
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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to