I have two different browser sessions (on two different machines)
running
against a Rails (1.2.3) application
which is being deployed with Apache 2.2.4 balacing requests across two
Mongrels (1.0.1, cluster 1.0.2). I am using the default
PStore mechanism for storing session information.
The problem is that the two sessions seem to be modifiying each other’s
data
occasionally.
Looking in tmp/sessions reveals that both sessions have the same value
for a
session key that should be different.
The session data for the key is populated from AJAX calls that result
from
dragging and dropping an item from one sortable element
to another. Here is the code for the action that does this:
def update_test_run
session[:sys_test_ids] = params[:selected_tests] if
params[:selected_tests]
render :nothing => true
end
The production.log indicates that the correct test ids are being passed
in
params[:selected_tests] to update_test_run
but later when the action for the form is executed, the wrong test id is
found in session[:selected_tests].
Does anyone know what might be the cause of this? It does not happen
very
often, maybe once in 20 times but it should
not happen at all.
Ron