I am interested in ideas that developers employ to prevent users doing a page refresh hence re-sending Post data. What is perhaps best practice especially within the Yii Framework. Using sessions seems to be a fairly easy method to implement however opinions vary. Thoughts?
Page 1 of 1
Preventing Actions With Page Refresh
#2
Posted 07 February 2013 - 01:30 AM
This is done by setting flash message, redirect and showing the flash message. http://www.yiiframework.com/wiki/21/
#3
Posted 07 February 2013 - 04:18 AM
Yes, and if you're intending to keep the user on the same page, you can use $this->refresh() after setting your flash message in your action.
Share this topic:
Page 1 of 1

Help













