class ApplicationController < ActionController::Base before_filter :update_session_expiration_date private def update_session_expiration_date unless ActionController::Base.session_options[:session_expires] ActionController::Base.session_options[:session_expires] = 1.year.from_now end end end
You need to create an account or log in to post comments to this site.