rails not picking session data -


i implementing payment gateway in app. this: user fills form necessary details, along field containing return_url(say http://myapp.com/ebs_payment/ebs_response?dr={somedata}) , submit form secure payment site. after transaction complete, secure site puts encrypted data param {dr} , user redirected return url. problem here is, when user returns app return_url, application fails pick session data , returns nil value.

before submitting form, put object @fdpaymentdets in session.

here controller:

class ebspaymentcontroller < applicationcontroller   #before_filter :login_required,:check_user_authenticate     #access_control [:ebs_response] => ('user')    def ebs_response     @fdpaymentdets = session["fd_payment_details"]      @deal = deal.find(@fdpaymentdets.deal_id)      @categories = find_all_categories       end    private   def find_all_categories      @sp = sitepreference.find(:first)      category.find(:all,:limit => @sp.categories_display_limit,:order => 'position')   end  end 

when user redirected return url (http://myapp.com/ebs_payment/ebs_response?dr={encrypted_data}) secure site, rails not picking @fdpaymentdets object session , making nil resulting in error when accessing data nil object.

the surprising thing that, when put same return_url in browser hand, session data neatly picked , goes well.

am missing thing here? obvious reason? appreciated.

cookies , redirects messy , bug prone (from browser's implementation perspective). take @

safari doesn't set cookie ie / ff does

suggestion change implementation set session first in show action, , update value before redirect


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -