Source: show | on GitHub
# File actionpack/lib/action_dispatch/middleware/session/abstract_store.rb, line 21 def initialize(app, options = {}) options[:key] ||= "_session_id" super end
# File actionpack/lib/action_dispatch/middleware/session/abstract_store.rb, line 26 def generate_sid sid = SecureRandom.hex(16) sid.encode!(Encoding::UTF_8) sid end
# File actionpack/lib/action_dispatch/middleware/session/abstract_store.rb, line 33 def initialize_sid # :doc: @default_options.delete(:sidbits) @default_options.delete(:secure_random) end