Parent

Methods

Rack::CommonCookies

Rack middleware to use common cookies across domain and subdomains.

Public Class Methods

new(app) click to toggle source
# File lib/rack/contrib/common_cookies.rb, line 8
def initialize(app)
  @app = app
end

Public Instance Methods

call(env) click to toggle source
# File lib/rack/contrib/common_cookies.rb, line 12
def call(env)
  @app.call(env).tap do |(status, headers, response)|
    @host = env['HTTP_HOST'].sub PORT, ''
    share_cookie headers
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.