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 protected]> 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 protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com
>
> This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]