• 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: Flash, DirectAction and Sessions Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Flash, DirectAction and Sessions Question


  • Subject: Re: Flash, DirectAction and Sessions Question
  • From: David LeBer <email@hidden>
  • Date: Mon, 6 Nov 2006 15:57:10 -0500

On 6-Nov-06, at 3:42 PM, James Cicenia wrote:

hmmmm....

I am using session().defaultEditingContext() to get a context to query..

does that create a new session?

- James

If you are not appending the sid to the directAction url, yes this will create a new session.


In the last app that I wrote that uses Flash as a front-end, I pass the Session ID in as a parameter to the Flash Applet and then pass it back to the directAction and extract the Session using it:

Session session = (Session)(WOApplication.application ()).restoreSessionWithID(sessionID(), context());


On Nov 6, 2006, at 1:05 PM, Chuck Hill wrote:


On Nov 6, 2006, at 10:25 AM, James Cicenia wrote:

Hello -

One of my apps has a Flash front-end that has direct actions associated with
certain buttons in the Flash.


I think this is causing my application to eventually stop taking new connections.
I think it is just creating new sessions on and on till it freezes and I have to
actually kill the instance.


Would this be killing my app?

Yes, if it ran out of memory.


Is there an easy way of maintaining or reducing the sessions?

Do the direct actions need a session? If not, remove whatever code it is that references a session. If they do, Flash needs to include the session ID in the URL it requests. I have done that by passing the URLs as parameters to the Flash object.


Chuck


-- ;david

--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site:   http://www.codeferous.com
blog: http://david.codeferous.com
--
Toronto Area Cocoa / WebObjects developers group:
http://www.tacow.org


_______________________________________________ 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
References: 
 >Flash, DirectAction and Sessions Question (From: James Cicenia <email@hidden>)
 >Re: Flash, DirectAction and Sessions Question (From: Chuck Hill <email@hidden>)
 >Re: Flash, DirectAction and Sessions Question (From: James Cicenia <email@hidden>)

  • Prev by Date: Re: Flash, DirectAction and Sessions Question
  • Next by Date: Fwd: Flash, DirectAction and Sessions Question
  • Previous by thread: Re: Flash, DirectAction and Sessions Question
  • Next by thread: Fwd: Flash, DirectAction and Sessions Question
  • Index(es):
    • Date
    • Thread