Re: Combination of ERXApplication.replaceApplicationPath, Session-Cookies and Ajax doesn't work
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