Methods
Class Public methods
new(app, options = {})
📝 Source code
# File actionpack/lib/action_dispatch/middleware/session/abstract_store.rb, line 23
def initialize(app, options = {})
options[:key] ||= "_session_id"
super
end
🔎 See on GitHub
Instance Public methods
generate_sid()
📝 Source code
# File actionpack/lib/action_dispatch/middleware/session/abstract_store.rb, line 28
def generate_sid
sid = SecureRandom.hex(16)
sid.encode!(Encoding::UTF_8)
sid
end
🔎 See on GitHub
Instance Private methods
initialize_sid()
📝 Source code
# File actionpack/lib/action_dispatch/middleware/session/abstract_store.rb, line 35
def initialize_sid # :doc:
@default_options.delete(:sidbits)
@default_options.delete(:secure_random)
end
🔎 See on GitHub