In essense, a proxy to the rack session handling methods.
Writing cookie values
Picombo::Session.set(:sample, 'this is the content of the session var')
Getting cookie values
Picombo::Session.get(:sample)
Retrieves a session item defined by key, returns default if item doesn’t exist You can retreive the entire session by omiting the key paramter
# File lib/classes/session.rb, line 22
22: def get(key = nil, default = nil)
23: return @@req.session if key.nil?
24:
25: result = Picombo::Config.key_string(@@req.session, key)
26:
27: return result.nil? ? default : result
28: end
Initializes the request for cookies
# File lib/classes/session.rb, line 16
16: def init(req)
17: @@req = req
18: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.