<< | Index | >>
sbsm session does not handle cookie.
These methods don't not work in State#init
def init super p @session.get_cookie_input(:style) p @session.cookie_set_or_get(:style) ... end
It may bug of SBSM.
Cookie import dose not work.
SBSM::Session
import only ruby 1.8 ?
def import_cookies(request) reset_cookie() if RUBY_VERSION < "1.9" if(cuki = request.cookies[self::class::PERSISTENT_COOKIE_NAME]) cuki.each { |cuki_str| CGI.parse(CGI.unescape(cuki_str)).each { |key, val| key = key.intern valid = @validator.validate(key, val.compact.last) @cookie_input.store(key, valid) } } end end end
proxy in sbsm/lib/sbsm/session.rb
# CGI::SessionHandler compatibility def restore #puts "restore was called" #@unix_socket = DRb.start_service('drbunix:', self) hash = { #:proxy => DRbObject.new(self, @unix_socket.uri) :proxy => self, } hash.extend(DRbUndumped) # added for Ruby1.8 compliance hash end
Related commits & posts