• 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: Knowing if a session exists
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Knowing if a session exists


  • Subject: Re: Knowing if a session exists
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 27 Sep 2006 15:45:52 -0700

HI Miguel,

You want this WOAction (super class of WODirectAction) method:

public WOSession existingSession()

Restores the session based on the request. If the request did not have a session ID or the session ID referred to a non-existent session, then this method returns null. To determine if a session failed to restore, check the request's session ID to see if it non- null and if so, call this method to check its result.

all you really need is
if (existingSession() != null)  /* user already has a valid session */

Chuck


On Sep 27, 2006, at 3:23 PM, Miguel Arroz wrote:

Hi!

I need to make a small security check at a Direct action, and that is, making sure that a session (given by the "wosid" parameter in the request) exists. First, I'm assuming that if the URL has the "wosid" parameter, the load balancer point me to the right instance... right!? Second, how can I ask the WOSessionStore if this session actually exists?

  Yours

Miguel Arroz

      "I felt like putting a bullet between
       the eyes of every Panda that wouldn't
       scr*w to save its species."       -- Fight Club

Miguel Arroz
http://www.ipragma.com



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net


This email sent to email@hidden


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects





_______________________________________________
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: 
 >Knowing if a session exists (From: Miguel Arroz <email@hidden>)

  • Prev by Date: Knowing if a session exists
  • Next by Date: Re: WOFileUpload and WOLongResponsePage
  • Previous by thread: Knowing if a session exists
  • Next by thread: Newbie : Upload file to database Method
  • Index(es):
    • Date
    • Thread