ActionDispatch::Session::Compatibility Ruby on Rails 5.1.2 Module ActionDispatch::Session::Compatibility actionpack/lib/action_dispatch/middleware/session/abstract_store.rb Methods G generate_sid I initialize_sid N new Class Public methods new(app, options = {}) Link Source: show | on GitHub # File actionpack/lib/action_dispatch/middleware/session/abstract_store.rb, line 19 def initialize(app, options = {}) options[:key] ||= "_session_id" super end Instance Public methods generate_sid() Link Source: show | on GitHub # File actionpack/lib/action_dispatch/middleware/session/abstract_store.rb, line 24 def generate_sid sid = SecureRandom.hex(16) sid.encode!(Encoding::UTF_8) sid end Instance Private methods initialize_sid() Link Source: show | on GitHub # File actionpack/lib/action_dispatch/middleware/session/abstract_store.rb, line 32 def initialize_sid # :doc: @default_options.delete(:sidbits) @default_options.delete(:secure_random) end