Session Variables

My payment processor gets a callback from the bank, one of the fields contains a html snippet that I want callback to save in session (callback has “Session::resetId($sess_id);”) to display on order_confirmation page when the user comes back from the processor. I know how to do this.



BUT

It does not work to save "$ _SESSION [‘cart’] [‘user_data’] [‘my_var’] = ‘My_html snippet’; 'in the callback session because most of the session data is lost when the order is processed, there must be any way to assign a variable to remain in the session?

[quote name=‘gabbo’ timestamp=‘1395501817’ post=‘179867’]

My payment processor gets a callback from the bank, one of the fields contains a html snippet that I want callback to save in session (callback has “Session::resetId($sess_id);”) to display on order_confirmation page when the user comes back from the processor. I know how to do this.



BUT

It does not work to save "$ _SESSION [‘cart’] [‘user_data’] [‘my_var’] = ‘My_html snippet’; 'in the callback session because most of the session data is lost when the order is processed, there must be any way to assign a variable to remain in the session?

[/quote]



Solved: I had to grab vars before “fn_order_placement_routines” :-)