I thought to save the current user type in session[:user_type] . Possible options: "admin", "end_user", "demo" (new types of users may be added in the future).
I wonder if it's safe to do this in a Rails 3 application.
Can the user somehow change session[:user_type] from "demo" to "admin"?
security ruby-on-rails ruby-on-rails-3 session
Misha moroshko
source share