Best way to cookie a user?


#1

After login, I do ‘session[:user] = @user’. What’s the best way to
cookie this user for later visits after the session expires? I presume
simply cookieing their user id or email is a bad idea and that a salted
hash should be used.

Thanks,
Joe