[ Baron Shoreditch Flies Again ]

> At 02:21 PM 3/3/99 +0100, you wrote:
> >When I work inside my application (in the frame), then the cookie is
> >returned, but when I push a button on the toolbar and Main in my
> >application is called with a clean URL, I try to get the cookie from
> >the request-object. This only returns null. This is my problem,
> >because I use this to check if the user is logged in.
> 
> So the url in frame one is something like 
> http://domain/cgi-bin/WebObjects.exe/YourApp.woa
> ?

Yeah, this is right. My application is called with this URL and the
Main component is to be shown.

> In which case, you're not checking for the request object in
> invokeActionForRequest or takeValuesFromRequest are you?
> Those methods don't get called when there's no real request, like when
> you're returning the default page on session startup...

In the constructor of Main I check for the cookie if the user is not
logged in. In the constuctor I do something like this:

cookie = context().request().cookieValueForKey("grunnoppl_it");

When I do this (in the constructor of Main), the method returns null
even if a cookie is set. If I write in the URL myself, and the
application runs in the whole browser, the cookie is returned. But
when I call it by pushing the button in the toolbar, only null is
returned.

Any advice??

Thanks again!!
Endre
-- 
           ,,,
          (O O)
------oOO--(_)--OOo------------------------
| URL: http://www.stud.ifi.uio.no/~endrer |
-------------------------------------------

Reply via email to