hidden field - Keep locale in session or send along with form? -


I am creating CMS. CMS has the ability to edit pages based on the selected locale. I place this selected place in a session, while the CMS user browses through the pages they want to edit.

Now, my question is:
If a user is editing the page and wants to make changes, do you think that I would like to include the locale as a hidden field in that place What should be presented? Just to be on the safe side? Or should I just rely on the place that is present in the session?

Yes, you must post exactly this happens all the time, because the user while editing the page The result could have changed the result that one page is overwritten with content from another location.

If a user does not have permission to edit pages outside their locales, then you will have to check addition to whether the user has permission to edit or not specified page / locale combination (because they are a fake When it comes through a session).


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -