2011年2月16日星期三

Re: [fw-mvc] Sessions and passing them between websites

>> I believe that I need to save the form in a session variable and redirect the user to the Action Controller, I'm just not that sure how to go about it. I haven't done much work with Sessions, or forms which will post the entered information into a session variable.
>
> Are you trying to generate some forms on a website and them processed them on ZF based website? And then need information about inputs to validate and filter them? If you do you could maybe serialize your form object either in a database or in a session (depending on your use) and then unserialize your form object to get full informations about how to process it.

Don't pass sessions between servers unless you understand the security implications.

Post the data over SSL from a form served on Server A to the action on Server B.

On Server B's controller, get the data from the request object and pass it to the model to validate/sanitize it using Zend_Form or Zend_Filter_Input.

没有评论: