lib/session/sessionmanager.rb in rsence-pre-2.1.0.19 vs lib/session/sessionmanager.rb in rsence-pre-2.1.0.20

- old
+ new

@@ -73,11 +73,11 @@ ses_data = { # the time, when the session will time out :timeout => timeout, - :plugin_incr => 0, + :plugin_incr => @plugins.incr, # session id, used internally :ses_id => ses_id, # session key, used externally (client xhr) @@ -180,10 +180,11 @@ ses_key = @randgen.gen ses_sha = SHA1.hexdigest(ses_key+ses_seed) ses_data[:timeout] = timeout ses_data[:ses_key] = ses_key ses_data[:cookie_key] = cookie_key + ses_data[:plugin_incr] = @plugins.incr ses_id = new_ses_id( cookie_key, ses_key, timeout ) ses_data[:ses_id] = ses_id @sessions[ ses_id ] = ses_data @session_keys[ ses_sha ] = ses_id @session_cookie_keys.delete( old_data[:cookie_key] ) @@ -310,9 +311,12 @@ # map the new cookie key to the old session identifier @session_cookie_keys[ cookie_key ] = ses_id # binds the new cookie key to the old session data @sessions[ses_id][:cookie_key] = cookie_key + + + msg.session[:plugin_incr] = @plugins.incr # Sets the restored_session flag of msg to true # It signals plugins to re-set data msg.restored_session = true