Re: app-register & cookies

Michael Nash <[email protected]> Wed, 01 Dec 2004 12:29:53 -0500
Newsgroups gmane.comp.java.keel.user
Organization JGlobal Limited
Message-ID <[email protected]>
Gene:

Ow - I'm suprised it was returning "on", but thanks for the fix in
SuperString - can you check that in, I think it's a good fix!

You *should* be getting cookies if Remember is true - if not, I think
you've found a bug somewhere. It's working here for me, but I'll check
to make sure I'm synched with the latest CVS, perhaps something was
broken recently by another change.

Mike

On Wed, 2004-12-01 at 12:03, Gene wrote:
> Mike,
> I wish that did help, but I'm already getting the checkbox.  Actually, 
> as I've been trying to work this out, I came across an issue.  The form 
> element returns "on" to the login model.  The model was using 
> SuperString (which I love using btw) .getAsBoolean, which always 
> returned false.  I've fixed that locally.  I've added some logging and 
> verified that it is evaluating as true, but still no cookies.
> 
> Anyway, was just wondering if app-register was intended to allow that 
> behavior, and if anyone was actually getting it to work.  Thanks for the 
> response.
> 
> any other ideas?
> 
> Thanks
> gene
> 
> Michael Nash wrote:
> > Gene:
> > 
> > There's a "Remember" parameter to the model that logs you in. The idea
> > is that if this is set, a cookie with the login, password, and domain
> > will be left on the client (encrypted, actually). If this is *not* set,
> > then it's a temporary login with just the JSESSIONID.
> > 
> > In the register app, the login page should be showing you a checkbox for
> > "Remember" - the default (and whether it's shown at all, or defaults one
> > way or another) can be set with configuration in system.xconf.
> > 
> > HTH!
> > 
> > Mike
> > 
> > On Wed, 2004-12-01 at 11:13, Gene wrote:
> > 
> >>Hi all.  I'm a little confused about the cookies and keel, i guess 
> >>actually it's app-register that worries about the cookies at all.  I'm 
> >>using tomcat and struts, and i'd like for the authentication to stay on 
> >>the users browser for a longer period, say maybe a week or month.  Is 
> >>there something like that built into app-register and I just need to 
> >>configure it properly?  I'm not seeing it if it is there.
> >>
> >>the thing that is really confusing me right now is that I don't find any 
> >>cookies in my browser for say keel-login, or keel-password.  all I have 
> >>is a JSESSION cookie.  Are the keel values stored in that cookie maybe, 
> >>and thats what I'm not understanding?
> >>
> >>Hoping someone who knows has a few minutes to straighten me out.  Or 
> >>point me to a wiki or manual page that I've overlooked.
> >>
> >>tia
> >>gene
> >>
> >>
> >>_______________________________________________
> >>User mailing list
> >>[email protected]
> >>http://lists.keelframework.org/listinfo.cgi/user-keelframework.org
> > 
> > 
> > _______________________________________________
> > User mailing list
> > [email protected]
> > http://lists.keelframework.org/listinfo.cgi/user-keelframework.org
> > 
> > 
> 
> 
> _______________________________________________
> User mailing list
> [email protected]
> http://lists.keelframework.org/listinfo.cgi/user-keelframework.org