Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

create a request session in the cookie stores

  • Loading branch information...
commit e2218b7ee5df4580df8d502cbe4ef47b4f1c4a8c 1 parent 638d002
@tenderlove tenderlove authored
View
8 actionpack/lib/action_dispatch/middleware/session/cookie_store.rb
@@ -46,6 +46,14 @@ class CookieStore < Rack::Session::Cookie
private
+ def prepare_session(env)
+ Request::Session.create(self, env, @default_options)
+ end
+
+ def loaded_session?(session)
+ !session.is_a?(Request::Session) || session.loaded?
+ end
+
def unpacked_cookie_data(env)
env["action_dispatch.request.unsigned_session_cookie"] ||= begin
stale_session_check! do
Please sign in to comment.
Something went wrong with that request. Please try again.