Permalink
Browse files

tweaking how sessions expire. now based on session.updated_at instead…

… of session.created_at
  • Loading branch information...
1 parent 08267d1 commit 4ef1bc65c5cb94c0cbb947b45eef9ae38968b3d3 Adam French committed Jan 28, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/harbor/contrib/session/data_mapper.rb
  2. +1 −1 lib/harbor/version.rb
View
2 lib/harbor/contrib/session/data_mapper.rb
@@ -44,7 +44,7 @@ def instance
def self.load_session(cookie)
session = if expire_after = Harbor::Session.options[:expire_after]
- ::Session.first(:id => cookie, :created_at.gte => Time.now - expire_after)
+ ::Session.first(:id => cookie, :updated_at.gte => Time.now - expire_after)
else
::Session.get(cookie)
end
View
2 lib/harbor/version.rb
@@ -1,3 +1,3 @@
module Harbor
- VERSION = "0.17.2"
+ VERSION = "0.17.3"
end

0 comments on commit 4ef1bc6

Please sign in to comment.