Re: Knowing if a session exists
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