Re: WOMailDelivery: suppress sessionID in links
Re: WOMailDelivery: suppress sessionID in links
- Subject: Re: WOMailDelivery: suppress sessionID in links
- From: Chuck Hill <email@hidden>
- Date: Thu, 22 Jul 2004 21:17:07 -0700
Add this binding to the WOHyperlink to avoid having the session ID
added:
?wosid = NO;
Chuck
On Jul 22, 2004, at 6:04 PM, Romeo Mariani wrote:
Hi all,
when I send a component using WOMailDelivery and
composeComponentEmail, sessionIDs are manteined in directActionUrls. I
need to suppress it since users that receive the mail can enter the
site like logged users (foccalabindella!).
I try to generate a myContext without session:
NSMutableDictionary headers = new NSMutableDictionary();
headers.setObjectForKey(new NSArray(host), "host");
headers.setObjectForKey(new NSArray(host), "server_name");
String httpVersion = context().request().httpVersion();
String hostPath = httpVersionLowercase(httpVersion) + "://" + host;
WORequest request = new WORequest("POST", hostPath, httpVersion,
headers, null, null);
WOContext context = new WOContext(request);
aPage = ((Application)application()).pageWithName("Main", context);
but when I send the page links start with internal host + port:
http://localhost:2007/
instead of
http://www.mydomain.com/
Any ideas?
Thx
Romeo
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.