class Racket::Session

Racket::Session is just a thin wrapper around whetever object that is implementing the session storage. By default this is an instance of Rack::Session::Abstract::SessionHash, but Racket::Session will happily wrap anything found in the rack environment.

To provide your own session handler and have it wrapped by Racket::Session, just add your session handler as a middleware and make sure it writes the current session to the key rack.session in the rack environment.

Public Instance Methods

inspect() click to toggle source

Look the same regardless of what the underlying implementation is.

# File lib/racket/session.rb, line 29
def inspect
  "#<#{self.class}:#{object_id}>"
end
Also aliased as: to_s, to_str
to_s()
Alias for: inspect
to_str()
Alias for: inspect