module ActionDispatch::Session::Compatibility - actionpack-4.2.4 Documentation

# module ActionDispatch::Session::Compatibility

### Public Class Methods

new(app, options = {}) click to toggle source
Calls superclass method

    # File lib/action_dispatch/middleware/session/abstract_store.rb, line 22
    def initialize(app, options = {})
      options[:key] ||= '_session_id'
      super
    end

### Public Instance Methods

generate_sid() click to toggle source

    # File lib/action_dispatch/middleware/session/abstract_store.rb, line 27
    def generate_sid
      sid = SecureRandom.hex(16)
      sid.encode!(Encoding::UTF_8)
      sid
    end

### Protected Instance Methods

initialize_sid() click to toggle source

    # File lib/action_dispatch/middleware/session/abstract_store.rb, line 35
    def initialize_sid
      @default_options.delete(:sidbits)
      @default_options.delete(:secure_random)
    end