0

OmniAuth で "remember me" 機能を実装する簡単な方法はありますか? 私は Facebook、Identity、LinkedIn を使用しており、ユーザーがセッション間でサイトにログインし続ける方法を探しています。

4

1 に答える 1

0

Basically you set another cookie on the client which persists the userid. Then use that userid to sign the user in (or at least recognise them) on subsequent visits. Remember Omniauth just does authentication, not the session management stuff so you need to do this outside Omniauth.

Look at the answer by gareth-simpson to this question: Implementation of "Remember me" in a Rails application

于 2012-05-08T14:49:57.280 に答える