2011年2月17日星期四

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

Hi Thomas,

If you really want to transfer form data between web sites, why you don't
use something like a small soap server. I think that will be easy to make a
services that will have one request that will receive your data in json
format and then the soap event will continue your script .

If you want to use session, try Zend Sessions saved into the database. I
think that you can make both websites to use the same session table from the
same database. Also this method is protected against most of the session
hijacking attempts.

Many greetings,
Manuel

On Thu, Feb 17, 2011 at 3:19 AM, Peter Warnock <petewarnock@gmail.com>wrote:

>
> >> 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.
>
>


--
Galiu Manuel
+40 741.060.684

没有评论: