[Seaside] "Remember me" in Seaside
Karsten Kusche
karsten at heeg.de
Tue Mar 11 11:39:23 UTC 2014
Do as Sven suggests with Cookies.
Here’s a general approach to implement Remember-me cookies: http://fishbowl.pastiche.org/2004/01/19/persistent_login_cookie_best_practice/
Karsten
--
Karsten Kusche - Dipl. Inf. (FH) - karsten at heeg.de
Georg Heeg eK - Köthen
Handelsregister: Amtsgericht Dortmund A 12812
Am Dienstag, 11. März 2014 um 12:10 schrieb Sven Van Caekenberghe:
> I do it with my own cookie, very easy to do:
>
> "before showing the username"
>
> (self requestContext request cookieAt: self loginUsernameCookieKey)
> ifNotNil: [ :cookie | username := cookie value ]
>
> "after a successful login"
>
> self requestContext response addCookie: self loginUsernameCookie.
>
> where
>
> loginUsernameCookie
> ^ self requestContext newCookie
> key: self loginUsernameCookieKey;
> value: self username;
> expireIn: 1 year;
> yourself
>
> HTH,
>
> Sven
>
> On 11 Mar 2014, at 09:39, Torsten Bergmann <astares at gmx.de (mailto:astares at gmx.de)> wrote:
>
> > Any code to share for a "remember me" functionality on logins?
> > Is there a common pattern on how to do it?
> >
> > Thx
> > T.
> > _______________________________________________
> > seaside mailing list
> > seaside at lists.squeakfoundation.org (mailto:seaside at lists.squeakfoundation.org)
> > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> >
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org (mailto:seaside at lists.squeakfoundation.org)
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20140311/4f048a1f/attachment.htm
More information about the seaside
mailing list