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