Skip to content

Commit

Permalink
Set default token_lifetime to 5 seconds incandescent#2
Browse files Browse the repository at this point in the history
  • Loading branch information
bowd committed Jul 1, 2014
1 parent ad69a44 commit 4a6de33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/session_injector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class InvalidHandshake < StandardError; end
# if you have configured a custom session store key, you must
# specify that as the value for this middleware
:key => ActionDispatch::Session::AbstractStore::DEFAULT_OPTIONS[:key],
:token_lifetime => 5000, # five seconds should be enough
:token_lifetime => 5, # five seconds should be enough
:die_on_handshake_failure => true
}

Expand Down Expand Up @@ -189,4 +189,4 @@ def decrypt_handshake_token(token, env)
end
end
end
end
end

0 comments on commit 4a6de33

Please sign in to comment.