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