• 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
Re: DirectAction + Session restoration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DirectAction + Session restoration


  • Subject: Re: DirectAction + Session restoration
  • From: LD <email@hidden>
  • Date: Wed, 31 Aug 2005 15:02:11 +1000

Hi there,

On 31/08/2005, at 1:06 PM, Gavin Eadie wrote:

It's not quite the same as a recent thread related to DirectActions and Sessions, but in researching a behavior I didn't understand, I seem to have hit on an anomaly. OR, I've hit on my ignorance, again. This arose when a colleague and I were each using the same logout action from a framework -- mine worked, his didn't; mine was triggered by a text hyperlink, his by an image.

Demonstration:
Make a new application from the basic WebObjects application template. On the Main page put a WOHyperink and a WOActiveImage ... bind them both to the same DirectAction method, say "test" for example. In the testAction method log the values of expiredSession() and session(), in that order:


    public WOActionResults testAction() {
        NSLog.out.appendln(existingSession());
        NSLog.out.appendln(session());
        return pageWithName("Main");
    }

Fire up the application and click on the hyperlink:
expiredSession() returns the session [and so does session(), obviously]


Click on the active image:
   expiredSession() returns null, and session() makes a fresh session

Intriguing... looks like a bug, acts like a bug... well, I can't fathom why this would occur seeing as both href's are absolutely identical.


Anyone?

with regards,
--

LD

_______________________________________________
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: DirectAction + Session restoration
      • From: Kieran Kelleher <email@hidden>
References: 
 >WOComponent.hasSession() (From: Kieran Kelleher <email@hidden>)
 >Re: WOComponent.hasSession() (From: Chuck Hill <email@hidden>)
 >DirectAction + Session restoration (From: Gavin Eadie <email@hidden>)

  • Prev by Date: Re: Running concurrent Mulithreaded Application
  • Next by Date: Re: How to build EOQualifier which generates "IN" SQL statement
  • Previous by thread: DirectAction + Session restoration
  • Next by thread: Re: DirectAction + Session restoration
  • Index(es):
    • Date
    • Thread