POST request / validation of page reloading.

View: New views
3 Messages — Rating Filter:   Alert me  

POST request / validation of page reloading.

by MichaelCh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello Geert!

I have question related to the POST request processing.
I am concerned about use case when user can send twice the same POST
request by reloading the page.

Could you provide me some hints how to validate it using rife,
Element's methods ?
Do I need to check submission context, etc ?

Best regards,
Michael Chudas.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: POST request / validation of page reloading.

by Geert Bevin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

there are several ways of doing this.

You can for instance redirect after post by setting up a 'redirect'  
exit. This makes it intuitive to trigger the exit, and the redirection  
will happen automatically.

Another possibility is to simply use continuations and to remove the  
active continuations tree when you're doing processing. People that  
press back and re-submit will not have the continuation to resume  
anymore, and they will to started all over again at the beginning of  
the interaction with the form(s).

Hope this helps,

Geert

On 19 May 2009, at 15:41, michaelCH wrote:

>
> Hello Geert!
>
> I have question related to the POST request processing.
> I am concerned about use case when user can send twice the same POST
> request by reloading the page.
>
> Could you provide me some hints how to validate it using rife,
> Element's methods ?
> Do I need to check submission context, etc ?
>
> Best regards,
> Michael Chudas.
> >

--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Flytecase Band - http://flytecase.be
Music and words - http://gbevin.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: POST request / validation of page reloading.

by MichaelCh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Geert!

My response is late but thanks for your answers.

Best regards,
Michael.

On 25 Maj, 07:37, Geert Bevin <gbe...@...> wrote:

> Hi,
>
> there are several ways of doing this.
>
> You can for instance redirect after post by setting up a 'redirect'  
> exit. This makes it intuitive to trigger the exit, and the redirection  
> will happen automatically.
>
> Another possibility is to simply use continuations and to remove the  
> active continuations tree when you're doing processing. People that  
> press back and re-submit will not have the continuation to resume  
> anymore, and they will to started all over again at the beginning of  
> the interaction with the form(s).
>
> Hope this helps,
>
> Geert
>
> On 19 May 2009, at 15:41, michaelCH wrote:
>
>
>
> > Hello Geert!
>
> > I have question related to the POST request processing.
> > I am concerned about use case when user can send twice the same POST
> > request by reloading the page.
>
> > Could you provide me some hints how to validate it using rife,
> > Element's methods ?
> > Do I need to check submission context, etc ?
>
> > Best regards,
> > Michael Chudas.
>
> --
> Geert Bevin
> Terracotta -http://www.terracotta.org
> Uwyn "Use what you need" -http://uwyn.com
> RIFE Java application framework -http://rifers.org
> Flytecase Band -http://flytecase.be
> Music and words -http://gbevin.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "rife-users" group.
To post to this group, send email to rife-users@...
To unsubscribe from this group, send email to rife-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---

 
 
 
Google
rifers.org web