RE: Restored session

2012-08-20 Thread Oscar González

Hi Chuck,Now it's working, but I didn't any change.
Thanks for your help.
Oscar.
> Subject: Re: Restored session
> From: ch...@global-village.net
> Date: Mon, 20 Aug 2012 12:13:31 -0700
> CC: webobjects-dev@lists.apple.com
> To: racso...@hotmail.com
> 
> Hi Oscar,
> 
> Try looking at the values for these:
> getSessionIDForRequest(context().request())
> existingSession()
> context().request().cookies()
> 
> Do you see the wosid cookie?  Does it have the right session ID in it?
> 
> 
> Chuck
> 
> 
> On 2012-08-20, at 12:05 PM, Oscar González wrote:
> 
> > Hi Chuck,
> > Yes, I'm storing the session ID in cookies and firefox is accepting them.
> > session.setStoresIDsInCookies(true);
> > 
> > Oscar.
> > 
> > > Subject: Re: Restored session
> > > From: ch...@global-village.net
> > > Date: Mon, 20 Aug 2012 11:49:55 -0700
> > > CC: webobjects-dev@lists.apple.com
> > > To: racso...@hotmail.com
> > > 
> > > Hi Oscar,
> > > 
> > > 
> > > Are you storing the session ID in cookies? Is FireFox accepting cookies?
> > > 
> > > 
> > > Chuck
> > > 
> > > 
> > > On 2012-08-20, at 11:10 AM, Oscar González wrote:
> > > 
> > > > Hi all,
> > > > Here I have this code lines in the DirectAction class, google chrome 
> > > > the session is restored.
> > > > but in Mozilla firefox a new session is created.
> > > > Why is this happening? 
> > > > What do I have to do to make it works on firefox too?
> > > > 
> > > > public WOActionResults entidadesListAction() {
> > > > WOComponent nextPage = null;
> > > > Session session =(Session)session();
> > > > if (!session.isValidCiaId()) {
> > > > nextPage = pageWithName(SesionExpirada.class.getName());
> > > > } else {
> > > > nextPage = pageWithName (EntidadList.class.getName());
> > > > ((EntidadList)nextPage).browsing = true;
> > > > ((EntidadList)nextPage).addButton2 = true;
> > > > }
> > > > return nextPage;
> > > > }
> > > > 
> > > > Saludos.
> > > > ___
> > > > Do not post admin requests to the list. They will be ignored.
> > > > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
> > > > Help/Unsubscribe/Update your Subscription:
> > > > https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
> > > > 
> > > > This email sent to ch...@global-village.net
> > > 
> > > -- 
> > > Chuck Hill Senior Consultant / VP Development
> > > 
> > > 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/gvc/practical_webobjects
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> 
> -- 
> Chuck Hill Senior Consultant / VP Development
> 
> 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/gvc/practical_webobjects
> 
> 
> 
> 
> 
> 
> 
> 
   ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Restored session

2012-08-20 Thread Chuck Hill
Hi Oscar,

Try looking at the values for these:
getSessionIDForRequest(context().request())
existingSession()
context().request().cookies()

Do you see the wosid cookie?  Does it have the right session ID in it?


Chuck


On 2012-08-20, at 12:05 PM, Oscar González wrote:

> Hi Chuck,
> Yes, I'm storing the session ID in cookies and firefox is accepting them.
> session.setStoresIDsInCookies(true);
> 
> Oscar.
> 
> > Subject: Re: Restored session
> > From: ch...@global-village.net
> > Date: Mon, 20 Aug 2012 11:49:55 -0700
> > CC: webobjects-dev@lists.apple.com
> > To: racso...@hotmail.com
> > 
> > Hi Oscar,
> > 
> > 
> > Are you storing the session ID in cookies? Is FireFox accepting cookies?
> > 
> > 
> > Chuck
> > 
> > 
> > On 2012-08-20, at 11:10 AM, Oscar González wrote:
> > 
> > > Hi all,
> > > Here I have this code lines in the DirectAction class, google chrome the 
> > > session is restored.
> > > but in Mozilla firefox a new session is created.
> > > Why is this happening? 
> > > What do I have to do to make it works on firefox too?
> > > 
> > > public WOActionResults entidadesListAction() {
> > > WOComponent nextPage = null;
> > > Session session =(Session)session();
> > > if (!session.isValidCiaId()) {
> > > nextPage = pageWithName(SesionExpirada.class.getName());
> > > } else {
> > > nextPage = pageWithName (EntidadList.class.getName());
> > > ((EntidadList)nextPage).browsing = true;
> > > ((EntidadList)nextPage).addButton2 = true;
> > > }
> > > return nextPage;
> > > }
> > > 
> > > Saludos.
> > > ___
> > > Do not post admin requests to the list. They will be ignored.
> > > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com)
> > > Help/Unsubscribe/Update your Subscription:
> > > https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
> > > 
> > > This email sent to ch...@global-village.net
> > 
> > -- 
> > Chuck Hill Senior Consultant / VP Development
> > 
> > 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/gvc/practical_webobjects
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 

-- 
Chuck Hill Senior Consultant / VP Development

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/gvc/practical_webobjects









 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

RE: Restored session

2012-08-20 Thread Oscar González

Hi Chuck,Yes, I'm storing the session ID in cookies and firefox is accepting 
them.







session.setStoresIDsInCookies(true);
Oscar.
> Subject: Re: Restored session
> From: ch...@global-village.net
> Date: Mon, 20 Aug 2012 11:49:55 -0700
> CC: webobjects-dev@lists.apple.com
> To: racso...@hotmail.com
> 
> Hi Oscar,
> 
> 
> Are you storing the session ID in cookies?  Is FireFox accepting cookies?
> 
> 
> Chuck
> 
> 
> On 2012-08-20, at 11:10 AM, Oscar González wrote:
> 
> > Hi all,
> > Here I have this code lines in the DirectAction class, google chrome the 
> > session is restored.
> > but in Mozilla firefox a new session is created.
> > Why is this happening? 
> > What do I have to do to make it works on firefox too?
> >  
> > public WOActionResults entidadesListAction() {
> > WOComponent nextPage = null;
> > Session session =(Session)session();
> > if (!session.isValidCiaId()) {
> > nextPage = pageWithName(SesionExpirada.class.getName());
> > } else {
> > nextPage = pageWithName (EntidadList.class.getName());
> > ((EntidadList)nextPage).browsing = true;
> > ((EntidadList)nextPage).addButton2 = true;
> > }
> > return nextPage;
> > }
> > 
> > Saludos.
> > ___
> > Do not post admin requests to the list. They will be ignored.
> > Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> > Help/Unsubscribe/Update your Subscription:
> > https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
> > 
> > This email sent to ch...@global-village.net
> 
> -- 
> Chuck Hill Senior Consultant / VP Development
> 
> 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/gvc/practical_webobjects
> 
> 
> 
> 
> 
> 
> 
> 
   ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Restored session

2012-08-20 Thread Chuck Hill
Hi Oscar,


Are you storing the session ID in cookies?  Is FireFox accepting cookies?


Chuck


On 2012-08-20, at 11:10 AM, Oscar González wrote:

> Hi all,
> Here I have this code lines in the DirectAction class, google chrome the 
> session is restored.
> but in Mozilla firefox a new session is created.
> Why is this happening? 
> What do I have to do to make it works on firefox too?
>  
> public WOActionResults entidadesListAction() {
>   WOComponent nextPage = null;
>   Session session =(Session)session();
>   if (!session.isValidCiaId()) {
>   nextPage = pageWithName(SesionExpirada.class.getName());
>   } else {
>   nextPage = pageWithName (EntidadList.class.getName());
>   ((EntidadList)nextPage).browsing = true;
>   ((EntidadList)nextPage).addButton2 = true;
>   }
>   return nextPage;
> }
> 
> Saludos.
> ___
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
> 
> This email sent to ch...@global-village.net

-- 
Chuck Hill Senior Consultant / VP Development

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/gvc/practical_webobjects









 ___
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list  (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com