• 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: Kieran Kelleher <email@hidden>
  • Date: Wed, 31 Aug 2005 09:22:33 -0400

Something must be different in the requests generated ...... it might be worthwhile to log the request().toString() and compare to see if that sheds light on the problem.

On Aug 31, 2005, at 1:02 AM, LD wrote:

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:
email@hidden


This email sent to email@hidden


_______________________________________________ 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: LD <email@hidden>
    • Re: DirectAction + Session restoration
      • From: Gavin Eadie <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>)
 >Re: DirectAction + Session restoration (From: LD <email@hidden>)

  • Prev by Date: Re: Finding deprecated API
  • Next by Date: Re: Java help
  • Previous by thread: Re: DirectAction + Session restoration
  • Next by thread: Re: DirectAction + Session restoration
  • Index(es):
    • Date
    • Thread