WOMailDelivery: suppress sessionID in links
WOMailDelivery: suppress sessionID in links
- Subject: WOMailDelivery: suppress sessionID in links
- From: Romeo Mariani <email@hidden>
- Date: Fri, 23 Jul 2004 03:04:44 +0200
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.