Skip to content

Instantly share code, notes, and snippets.

@arbarlow
Created January 4, 2010 16:42
Show Gist options
  • Save arbarlow/268642 to your computer and use it in GitHub Desktop.
Save arbarlow/268642 to your computer and use it in GitHub Desktop.
class ApplicationController < ActionController::Base
before_filter :update_session_expiration_date
private
def update_session_expiration_date
options = ActionController::Base.session_options
unless options[:session_expires]
options[:session_expires] = 1.year.from_now
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment