app/controllers/sessions_controller.rb
# We want to save the forwarding url of a session but
# still need to counter session fixation,  this does it
We want to save the forwarding url of a session but
still need to counter session fixation,  this does it
We want to save the forwarding url of a session but still need to counter session fixation this does it
def counter_fixation
    ref_url = session[:forwarding_url] 
    I18n.locale = session[:locale]
    reset_session 
    session[:forwarding_url] = ref_url 
  end
def counter_fixation ref_url = session [ :forwarding_url ] I18n . locale = session [ :locale ] reset_session session [ :forwarding_url ] = ref_url end
We want to save the forwarding url of a session but
still need to counter session fixation,  this does it
We want to save the forwarding url of a session but still need to counter session fixation this does it
# Save forwarding url # Counter session fixation # Reload forwarding url