• 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: Combination of ERXApplication.replaceApplicationPath, Session-Cookies and Ajax doesn't work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Combination of ERXApplication.replaceApplicationPath, Session-Cookies and Ajax doesn't work


  • Subject: Re: Combination of ERXApplication.replaceApplicationPath, Session-Cookies and Ajax doesn't work
  • From: Samuel Pelletier <email@hidden>
  • Date: Sun, 08 Nov 2015 09:58:22 -0500
  • X_v_e_cd: 50b87de5f806e1422d47428fdfd88c54
  • X_v_r_cd: e0b2ed606787ccc8447a44b3d8845c7e

Hi Christoph,

All my apps are like this. The only things special I see if you need to override domainForIDCookies() in the Session class but I  think it is also required for non Ajax app. Does non Ajax request works ?

My generic solution is this because of an app that serve multiple domains :

Add this attribute to the session class:
	private String cookieDomainID;

And overide thid method:
	@Override
	public String domainForIDCookies() {
		if (cookieDomainID == null) {
			cookieDomainID = super.domainForIDCookies();
			cookieDomainID = application()._rewriteURL(cookieDomainID);
			log.warn("cookieDomain: "+ cookieDomainID);
		}
		return cookieDomainID;
	}


Samuel


> Le 2015-11-07 à 22:09, CHRISTOPH WICK | i4innovation GmbH, Bonn <email@hidden> a écrit :
>
> Hi list,
>
> has anyone the combination of
>
> - ERXApplication.replaceApplicationPath and
> - SessionID stored in cookies and
> - Ajax (from Wonder's Ajax-Framework)
>
> successfully working in combination?
>
> I don't get it up and running on a test-server. In my case each click on a submit button in a form containing Ajax-Update-Containers is returning to the "Main"-page. Somewhere in the whole stack, WebObjects forgets the session and starts as if a new session was created.
>
> And help is welcome.
> Thx, C.U.CW
> --
> The three great virtues of a programmer are Laziness, Impatience and Hubris. (Randal Schwartz)
>
> _______________________________________________
> 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


 _______________________________________________
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


  • Prev by Date: Re: Making EOs aware of session properties (I know they should not but I need this anyway)
  • Next by Date: Deployment with Tomcat 8 (and beyond)
  • Previous by thread: Re: Making EOs aware of session properties (I know they should not but I need this anyway)
  • Next by thread: Deployment with Tomcat 8 (and beyond)
  • Index(es):
    • Date
    • Thread