Sha256: 32cffac1e8e7608de53f798dc94d9311b0f439d35ed0e41d854f2f4eb839c3f2

Contents?: true

Size: 620 Bytes

Versions: 106

Compression:

Stored size: 620 Bytes

Contents

require 'cgi'
require 'cgi/session'
require 'drb'
 
class CGI #:nodoc:all
  class Session
    class DRbStore
      @@session_data = DRbObject.new(nil, 'druby://localhost:9192')
 
      def initialize(session, option=nil)
        @session_id = session.session_id
      end
 
      def restore
        @h = @@session_data[@session_id] || {}
      end
 
      def update
        @@session_data[@session_id] = @h
      end
 
      def close
        update
      end
 
      def delete
        @@session_data.delete(@session_id)
      end
      
      def data
        @@session_data[@session_id]
      end
    end
  end
end

Version data entries

106 entries across 105 versions & 10 rubygems

Version Path
radiant-0.7.2 vendor/rails/actionpack/lib/action_controller/session/drb_store.rb
vibes-bj-1.2.2 spec/rails_root/vendor/rails/actionpack/lib/action_controller/session/drb_store.rb
vibes-bj-1.2.1 spec/rails_root/vendor/rails/actionpack/lib/action_controller/session/drb_store.rb
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/actionpack/lib/action_controller/session/drb_store.rb
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/actionpack/pkg/actionpack-2.2.2/lib/action_controller/session/drb_store.rb
jstorimer-deep-test-2.0.0 sample_rails_project/vendor/rails/actionpack/lib/action_controller/session/drb_store.rb
jstorimer-deep-test-1.4.0 sample_rails_project/vendor/rails/actionpack/lib/action_controller/session/drb_store.rb
jstorimer-deep-test-1.3.0 sample_rails_project/vendor/rails/actionpack/lib/action_controller/session/drb_store.rb
jstorimer-deep-test-1.2.0 sample_rails_project/vendor/rails/actionpack/lib/action_controller/session/drb_store.rb
jstorimer-deep-test-1.1.0 sample_rails_project/vendor/rails/actionpack/lib/action_controller/session/drb_store.rb
jstorimer-deep-test-1.0.0 sample_rails_project/vendor/rails/actionpack/lib/action_controller/session/drb_store.rb
jstorimer-deep-test-0.2.0 sample_rails_project/vendor/rails/actionpack/lib/action_controller/session/drb_store.rb
jstorimer-deep-test-0.1.0 sample_rails_project/vendor/rails/actionpack/lib/action_controller/session/drb_store.rb
actionpack-2.2.3 lib/action_controller/session/drb_store.rb
actionpack-1.13.0 lib/action_controller/session/drb_store.rb
actionpack-1.13.3 lib/action_controller/session/drb_store.rb
actionpack-1.13.5 lib/action_controller/session/drb_store.rb
actionpack-1.13.6 lib/action_controller/session/drb_store.rb
actionpack-1.13.4 lib/action_controller/session/drb_store.rb
actionpack-1.13.1 lib/action_controller/session/drb_store.rb