• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: mod_rewrite and AjaxUpdateLink drives me crazy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mod_rewrite and AjaxUpdateLink drives me crazy


  • Subject: Re: mod_rewrite and AjaxUpdateLink drives me crazy
  • From: Helmut Schottmüller <email@hidden>
  • Date: Mon, 20 Oct 2008 22:07:20 +0200

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@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
  • Follow-Ups:
    • Re: mod_rewrite and AjaxUpdateLink drives me crazy
      • From: Chuck Hill <email@hidden>
References: 
 >mod_rewrite and AjaxUpdateLink drives me crazy (From: Helmut Schottmüller <email@hidden>)
 >Re: mod_rewrite and AjaxUpdateLink drives me crazy (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: autoReconnect=true, is it OK?
  • Next by Date: Re: mod_rewrite and AjaxUpdateLink drives me crazy
  • Previous by thread: Re: mod_rewrite and AjaxUpdateLink drives me crazy
  • Next by thread: Re: mod_rewrite and AjaxUpdateLink drives me crazy
  • Index(es):
    • Date
    • Thread