Class: Rack::Session::Abstract::PersistedSecure

Inherits:
Persisted
  • Object
show all
Defined in:
lib/rack/session/abstract/id.rb

Direct Known Subclasses

Cookie, Pool

Defined Under Namespace

Classes: SecureSessionHash

Constant Summary

Constants inherited from Persisted

Rack::Session::Abstract::Persisted::DEFAULT_OPTIONS

Instance Attribute Summary

Attributes inherited from Persisted

#default_options, #key, #same_site, #sid_secure

Instance Method Summary collapse

Methods inherited from Persisted

#call, #commit_session, #context, #initialize

Constructor Details

This class inherits a constructor from Rack::Session::Abstract::Persisted

Instance Method Details

#extract_session_idObject



483
484
485
486
# File 'lib/rack/session/abstract/id.rb', line 483

def extract_session_id(*)
  public_id = super
  public_id && SessionId.new(public_id)
end

#generate_sidObject



477
478
479
480
481
# File 'lib/rack/session/abstract/id.rb', line 477

def generate_sid(*)
  public_id = super

  SessionId.new(public_id)
end