# class Rack::Session::SessionId

### Constants

ID_VERSION

### Attributes

cookie_value[R]
public_id[R]
to_s[R]

### Public Class Methods

new(public_id) click to toggle source

    # File lib/rack/session/abstract/id.rb, line 20
    def initialize(public_id)
      @public_id = public_id
    end

### Public Instance Methods

empty?() click to toggle source

    # File lib/rack/session/abstract/id.rb, line 31
    def empty?; false; end

inspect() click to toggle source

    # File lib/rack/session/abstract/id.rb, line 32
    def inspect; public_id.inspect; end

private_id() click to toggle source

    # File lib/rack/session/abstract/id.rb, line 24
    def private_id
      "#{ID_VERSION}::#{hash_sid(public_id)}"
    end

### Private Instance Methods

hash_sid(sid) click to toggle source

    # File lib/rack/session/abstract/id.rb, line 36
    def hash_sid(sid)
      Digest::SHA256.hexdigest(sid)
    end