Hi all,
I've noticed a couple of questions about using Action composition in
requests and using cookies for session handling. For "remember me"
functionality, it's a little more tricky, because you need to capture
the information at the top of any request and then pass the action
down either with a new cookie or removing an existing one.
I've written an ActionHandler gist that does a pretty good job of
token based authentication, based off the algorithm in
http://jaspan.com/improved_persistent_login_cookie_best_practice -- I
haven't included some classes, but this should be enough for people to
get started. No license attached, but it'd be nice to get a mention
if you include this in a library.
https://gist.github.com/3068212
Will.