Re: GRR, still the logout method not working.
Re: GRR, still the logout method not working.
- Subject: Re: GRR, still the logout method not working.
- From: Guido Neitzer <email@hidden>
- Date: Thu, 24 Sep 2009 10:57:45 -0700
It returns the existingSession if there is one and attaches it your RR
loop (so to speak).
Basically, what you should do, is call existingSession() in your
performActionNamed method of your DirectAction class to make sure, you
are always checking out the proper session from the session store and
not arbitrarily creating a new one.
existingSession() will not create a session if there is none - session
() will do this.
Guido
--
http://www.event-s.net
On 24. Sep. 2009, at 10:52 , Gustavo Pizano wrote:
MMM you are right Guido, Im not using the existingSession() on the
submit action method...
I have never seen that method before... OMG WO its so HUGE!!!!.
So what should I do with that method, is it from the WOAction?
g.
On Sep 24, 2009, at 7:09 PM, Guido Neitzer wrote:
On Sep 24, 2009, at 6:30 AM, Gustavo Pizano wrote:
Well this is what Im getting..
after I hit the log in WOSubmitButton in the LogIn WOComponent I
get:
Bonjour IM with Gustavo Pizano <pizano@xloc2>9/24/09 3:28 PM
Sep 24 15:27:49 XWSLocalizer[45879] INFO NSLog - Constructor
b6vIByeNVlhkFIyxGatoRw
Sep 24 15:27:53 XWSLocalizer[45879] INFO NSLog - Constructor
rOwDkKIZ0lpFrz4lpNMSZw
and then when I log out I get:
Sep 24 15:28:06 XWSLocalizer[45879] INFO NSLog - Terminate
rOwDkKIZ0lpFrz4lpNMSZw
I don't know from where is it coming the first session ID, is it
when it loads the LogInPage?
So, some guessing:
- you have something on the login page that creates a session
(WOSubmitButton, WOTextfield, ...)
- you submit to a direct action where you don't call
"existingSession()" before you return the next page
If that's what's going on it's why you are losing the first session
and terminating the second one later.
Guido
_______________________________________________
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