Created
January 4, 2010 16:42
-
-
Save arbarlow/268642 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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