Methods
- G
-
- I
-
- N
-
Class Public methods
Source:
show
| on GitHub
def initialize(app, options = {})
options[:key] ||= '_session_id'
super
end
Instance Public methods
Source:
show
| on GitHub
def generate_sid
sid = SecureRandom.hex(16)
sid.encode!('UTF-8') if sid.respond_to?(:encode!)
sid
end
Instance Protected methods
Source:
show
| on GitHub
def initialize_sid
@default_options.delete(:sidbits)
@default_options.delete(:secure_random)
end