I have a really special login feature in my app, so instead of plugins I use my own code.
In my controller I have something like
def login
...
session[:customer_id] = id
end
I use CookieStore (as default). So is it secure? What if somebody edit cookies? Can he impersonates somebody with another id?
See http://api.rubyonrails.org/v2.3.8/classes/ActionController/Session/CookieStore.html. Please also pay attention to this sentence :
In your situation, it certainly doesn’t matter and you can use CookieStore without fear.