• 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
WOLongResponsePage and sessions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WOLongResponsePage and sessions


  • Subject: WOLongResponsePage and sessions
  • From: Pascal Robert <email@hidden>
  • Date: Wed, 6 Aug 2008 09:20:08 -0400

Hello,

I'm having a strange problem here. I have to modify an app that generate stats, and those stats are generated by a WOLongResponsePage, and the content is generated this way :

public Object performAction() throws Exception{
try{
os = new EOObjectStoreCoordinator();
os.lock();
ctx = new EOEditingContext(os);
ctx.lock();

HashMap stats = statistique();
IterationStatistiques np = (IterationStatistiques )pageWithName(IterationStatistiques.class.getName());
WOResponse r = np.generateResponse();
return r.contentString();
}
catch(Exception e){
NSLog.out.appendln(e);
throw e;
}
}


It was working fine until I added a WOHyperlink to "IterationStatistiques". The hyperlink generates a different session ID, so when I click on the link, I get a session timeout (which is normal, since the session don't exist anymore). Is there a way to use the same existing session when performAction is run?

-------------------------------------------------------
Pascal Robert

http://www.macti.ca
http://www.linkedin.com/in/macti

Skype: MacTICanada
AIM/iChat : MacTICanada

_______________________________________________
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


  • Follow-Ups:
    • Re: WOLongResponsePage and sessions
      • From: Guido Neitzer <email@hidden>
  • Prev by Date: Re: Problem with migration to 10.5.4
  • Next by Date: Re: Problem with migration to 10.5.4
  • Previous by thread: Re: Build Error
  • Next by thread: Re: WOLongResponsePage and sessions
  • Index(es):
    • Date
    • Thread